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.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/busybox/busybox.install b/community/busybox/busybox.install
new file mode 100644
index 000000000..233b70799
--- /dev/null
+++ b/community/busybox/busybox.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo "You may want to do setuid on /bin/busybox"
+ echo " chmod 4555 /bin/busybox"
+}
+
+pre_upgrade() {
+ stat -c %a /bin/busybox >tmp/busybox.upgrade.script
+}
+
+post_upgrade() {
+ [ -f tmp/busybox.upgrade.script ] && chmod `cat tmp/busybox.upgrade.script` /bin/busybox
+ rm -f tmp/busybox.upgrade.script
+}