aboutsummaryrefslogtreecommitdiffstats
path: root/initcpio/hooks/paccache
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-04-28 23:12:29 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-04-28 23:12:29 +0200
commit3f39d0e11b54d025d47eea298a08fc744d1b8974 (patch)
treee3b9fc4fa5e625dc31449280e668a36d1286a99d /initcpio/hooks/paccache
parentfb49e5fdd62e4aec03bbf24a677e7bb6dcddc5ca (diff)
downloadpacredir-3f39d0e11b54d025d47eea298a08fc744d1b8974.tar.gz
pacredir-3f39d0e11b54d025d47eea298a08fc744d1b8974.tar.zst
rename files to 'pacredir'
Diffstat (limited to 'initcpio/hooks/paccache')
-rw-r--r--initcpio/hooks/paccache29
1 files changed, 0 insertions, 29 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
-}