aboutsummaryrefslogtreecommitdiffstats
path: root/initcpio
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-04-29 00:30:38 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-04-29 00:34:01 +0200
commit984f4ad69f9b7bad5dc54472dd374fd7edc5a5a9 (patch)
treeae652fc00e7217c7b77beb722893c4ad60f7e747 /initcpio
parent24ab5936629e735ff551f060a894fd93ad91470e (diff)
downloadpaccache-master.tar.gz
paccache-master.tar.zst
This project has been renamed to `pacredir`. Please...HEADmaster
... get it from https://github.com/eworm-de/pacredir#pacredir or https://git.eworm.de/cgit.cgi/pacredir/about/
Diffstat (limited to 'initcpio')
-rw-r--r--initcpio/hooks/paccache29
-rw-r--r--initcpio/install/paccache9
2 files changed, 0 insertions, 38 deletions
diff --git a/initcpio/hooks/paccache b/initcpio/hooks/paccache
deleted file mode 100644
index 5f8d560..0000000
--- a/initcpio/hooks/paccache
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-run_latehook() {
- local newroot="/new_root/"
-
- if ! grep -q '^pacserve hosts' ${newroot}/etc/pacredir.conf; then
- if [[ -n "${pacserve}" ]]; then
- msg ":: Adding pacserve host '${pacserve}' to pacredir.conf..."
- echo "pacserve hosts = ${pacserve}" >> ${newroot}/etc/pacredir.conf
- fi
- fi
-
- if ! grep -q '^pacdbserve hosts' ${newroot}/etc/pacredir.conf; then
- case $(uname -m) in
- x86_64)
- if [[ -n "${pacdbserve_x86_64}" ]]; then
- msg ":: Adding pacdbserve host '${pacdbserve_x86_64}' to pacredir.conf..."
- echo "pacdbserve hosts = ${pacdbserve_x86_64}" >> ${newroot}/etc/pacredir.conf
- fi
- ;;
- i686)
- if [[ -n "${pacdbserve_i686}" ]]; then
- msg ":: Adding pacdbserve host '${pacdbserve_i686}' to pacredir.conf..."
- echo "pacdbserve hosts = ${pacdbserve_i686}" >> ${newroot}/etc/pacredir.conf
- fi
- ;;
- esac
- fi
-}
diff --git a/initcpio/install/paccache b/initcpio/install/paccache
deleted file mode 100644
index 1cb06a4..0000000
--- a/initcpio/install/paccache
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-build() {
- add_runscript
-}
-
-help() {
- echo "This hook adds Server to pacredir.conf from inside initramfs."
-}