summaryrefslogtreecommitdiff
path: root/package/busybox/files/busybox.postinst
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-28 01:23:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-28 01:23:11 +0100
commit4f0a841650eedb203fef800bfa3a8fdd1f795f38 (patch)
tree13a4fb4799ec9f3f7d3d0bee7055aa4e4364709a /package/busybox/files/busybox.postinst
parenta80c0be3acf905d1c66d2813010d480e0b04b2fc (diff)
only set suid bit when installing on target
Diffstat (limited to 'package/busybox/files/busybox.postinst')
-rw-r--r--package/busybox/files/busybox.postinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/busybox/files/busybox.postinst b/package/busybox/files/busybox.postinst
index dff48985d..f9f8e212b 100644
--- a/package/busybox/files/busybox.postinst
+++ b/package/busybox/files/busybox.postinst
@@ -1,4 +1,5 @@
#!/bin/sh
+if [ -z $IPKG_INSTROOT ];then chmod u+s /bin/busybox;fi
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf network network YES
add_rcconf crond crond NO
@@ -6,4 +7,3 @@ add_rcconf watchdog watchdog NO
add_rcconf watchdog_flags watchdog_flags '-t 10 -T 20'
add_rcconf 'use "-C32" normally, "NO" to disable' syslogd_flags '-C32'
add_rcconf inetd inetd NO
-chmod u+s /bin/busybox