summaryrefslogtreecommitdiff
path: root/community/busybox/busybox.install
blob: 7bf2a83ac53a578aa5a40162aaf0635d26a25d01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  echo "You may want to do setuid on /usr/bin/busybox"
  echo "  chmod 4555 /usr/bin/busybox"
}

pre_upgrade() {
  busybox stat -c %a usr/bin/busybox >tmp/busybox.upgrade.script
}

post_upgrade() {
  [ -f tmp/busybox.upgrade.script ] && busybox chmod `busybox cat tmp/busybox.upgrade.script` usr/bin/busybox
  busybox rm -f tmp/busybox.upgrade.script
  echo "busybox is un /usr/bin now. Readjust its mode if you modified it."
}