revert the whole SUID situation
[busybox-power] / debian / busybox-power.postinst
index 9c4a8c0..74c57df 100644 (file)
@@ -9,7 +9,12 @@ if ! grep -F -q "$line" /etc/profile; then
   echo "$line" >> /etc/profile
 fi
 
-# Set SUID bit on /bin/busybox. Privileges are automatically dropped for 
-# applets that do not require the SUID bit to be set
-chmod u+s /bin/busybox 
+# Clean up conffile (from busybox-power 1.19.3power4 & 1.19.3power5)
+if test -e /etc/environment; then
+  ORIGCONFIG_MD5="d23caa13476e0d872d23e7290b52f544"
+  INSTCONFIG_MD5=`md5sum /etc/environment | awk '{ print $1 }'`
+  if test "$INSTCONFIG_MD5" == "$ORIGCONFIG_MD5"; then
+    rm /etc/environment
+  fi
+fi