summaryrefslogtreecommitdiff
path: root/community/busybox/busybox.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/busybox/busybox.install')
-rw-r--r--community/busybox/busybox.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/busybox/busybox.install b/community/busybox/busybox.install
new file mode 100644
index 000000000..04beb0630
--- /dev/null
+++ b/community/busybox/busybox.install
@@ -0,0 +1,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 in /usr/bin now. Readjust its mode if you modified it."
+}