a00ae944b5
Some other changes related for this: - Modify binpkg.sh to always insert the INSTALL script at head of the archive, and appending files after it. - Modify binpkg.sh to compress binpkgs with bzip2 -9 to save some bytes. --HG-- extra : convert_revision : b651b944f11c48dede1bbcea658182bf0984e8f3
26 lines
352 B
Plaintext
26 lines
352 B
Plaintext
#!/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
|