diff options
author | Christian Hesse <mail@eworm.de> | 2013-11-04 12:26:21 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-11-04 12:26:21 +0100 |
commit | 8670d1284bb8ec42bb305680eac91a919b78ae3f (patch) | |
tree | 3270654528f684fee9e66dfd2bba40062a5323e0 /initcpio/hook | |
parent | 6c2c8c8cf708c9d7ed758d9062d7e1791dcdb73c (diff) | |
download | pacredir-8670d1284bb8ec42bb305680eac91a919b78ae3f.tar.gz pacredir-8670d1284bb8ec42bb305680eac91a919b78ae3f.tar.zst |
add initcpio hook
Diffstat (limited to 'initcpio/hook')
-rw-r--r-- | initcpio/hook/paccache | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/initcpio/hook/paccache b/initcpio/hook/paccache new file mode 100644 index 0000000..8aa2fc0 --- /dev/null +++ b/initcpio/hook/paccache @@ -0,0 +1,11 @@ +#!/bin/sh + +run_latehook() { + local newroot="/new_root/" + + if [[ -n "${paccache}" ]]; then + msg ":: Adding paccache host '${paccache}' to pacredir.conf..." + echo "pacserve hosts = ${paccache}" >> ${newroot}/etc/pacredir.conf + echo "pacdbserve hosts = ${paccache}" >> ${newroot}/etc/pacredir.conf + fi +} |