2009-01-27 12:35:41 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
|
|
|
|
|
|
|
|
# $1 = chrootdir
|
|
|
|
# $2 = action
|
|
|
|
# $3 = pkgname
|
|
|
|
# $4 = version
|
|
|
|
|
|
|
|
case "$2" in
|
2009-02-03 16:32:51 +00:00
|
|
|
pre)
|
2009-01-27 12:35:41 +00:00
|
|
|
;;
|
2009-02-03 16:32:51 +00:00
|
|
|
post)
|
2009-01-27 12:35:41 +00:00
|
|
|
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
|