From 8670d1284bb8ec42bb305680eac91a919b78ae3f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 4 Nov 2013 12:26:21 +0100 Subject: add initcpio hook --- initcpio/hook/paccache | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 initcpio/hook/paccache (limited to 'initcpio/hook') 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 +} -- cgit v1.2.3-54-g00ecf