PKGBUILDs/community/busybox/busybox.install
2015-03-15 16:56:31 +00:00

16 lines
440 B
Text

_tmp_dir=tmp/busybox.upgrade
post_install() {
echo "You may want to do setuid on /usr/bin/busybox"
echo " chmod 4555 /usr/bin/busybox"
}
pre_upgrade() {
mkdir ${_tmp_dir} || exit 1
busybox stat -c %a usr/bin/busybox >${_tmp_dir}/busybox.upgrade.script
}
post_upgrade() {
[ -f ${_tmp_dir}/busybox.upgrade.script ] && busybox chmod `busybox cat ${_tmp_dir}/busybox.upgrade.script` usr/bin/busybox
busybox rm -rf ${_tmp_dir}
}