void-packages/templates/initng-ifiles/prepost-inst
Juan RP fa2748d9b2 Reorganize the templates directory for possible future changes.
Now every template uses its own directory. Patches, prepost* files
and other related stuff are stored there.

--HG--
extra : convert_revision : bbc529ef161d9a59fe13a1d54ac058f77ea05845
2009-02-03 21:35:57 +01:00

25 lines
352 B
Bash

#!/bin/sh -e
export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
# $1 = chrootdir
# $2 = action
# $3 = pkgname
# $4 = version
case "$2" in
pre)
;;
post)
echo "Running $3-$4 post-installation command..."
if [ "$1" = "NOTSET" ]; then
run_cmd="/sbin/genrunlevel --all"
else
run_cmd="chroot $1 /sbin/genrunlevel --all"
fi
${run_cmd}
;;
esac
exit 0