de800de41f
--HG-- extra : convert_revision : 376e924f763c342b0d0ad19895f0241475e18eec
25 lines
360 B
Bash
25 lines
360 B
Bash
#!/bin/sh -e
|
|
|
|
export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
|
|
|
|
# $1 = chrootdir
|
|
# $2 = action
|
|
# $3 = pkgname
|
|
# $4 = version
|
|
|
|
case "$2" in
|
|
preinst)
|
|
;;
|
|
postinst)
|
|
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
|