summaryrefslogtreecommitdiffstats
path: root/initcpio/hook/paccache
blob: 8aa2fc092b6bed463f171b9f153cd7ec583402f5 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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
}