summaryrefslogtreecommitdiffstats
path: root/initcpio/hook/paccache
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-05-27 10:32:38 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-05-27 10:32:38 +0200
commit415d00ac46e744dbfc512c047c69c07b62431403 (patch)
tree3d76869cb066ea44388151d02ee75790bebdb81e /initcpio/hook/paccache
parentea97f094a4d990788f06fff3c45922f4f06b45d2 (diff)
downloadpacredir-415d00ac46e744dbfc512c047c69c07b62431403.tar.gz
pacredir-415d00ac46e744dbfc512c047c69c07b62431403.tar.zst
rename hook -> hooks
Diffstat (limited to 'initcpio/hook/paccache')
-rw-r--r--initcpio/hook/paccache29
1 files changed, 0 insertions, 29 deletions
diff --git a/initcpio/hook/paccache b/initcpio/hook/paccache
deleted file mode 100644
index 6e09419..0000000
--- a/initcpio/hook/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
-}