apply the workaround below system-wide
authorDennis Groenen <dennis_groenen@hotmail.com>
Fri, 8 Jul 2011 17:45:10 +0000 (19:45 +0200)
committerDennis Groenen <dennis_groenen@hotmail.com>
Fri, 8 Jul 2011 17:45:10 +0000 (19:45 +0200)
debian/busybox-power.postinst
debian/busybox-power.prerm

index 2e6b89b..1a16365 100644 (file)
@@ -4,7 +4,7 @@ set -e
 /opt/busybox-power/busybox.power sh /opt/busybox-power/install-binary.sh
 
 # Workaround for bug 5317
-if ! grep -q "trap exit SIGHUP SIGINT SIGTERM" /home/user/.profile; then
-  echo "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" >> /home/user/.profile
+if ! grep -q "trap exit SIGHUP SIGINT SIGTERM" /etc/profile; then
+  echo "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" >> /etc/profile
 fi
 
index 1be3836..713c53b 100644 (file)
@@ -3,8 +3,8 @@ set -e
 
 sh /opt/busybox-power/uninstall-binary.sh
 
-if grep -q "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" /home/user/.profile; then
-  sed '/trap exit SIGHUP SIGINT SIGTERM #by busybox-power/d' /home/user/.profile > /tmp/.profile.sed
-  mv /tmp/.profile.sed /home/user/.profile
+if grep -q "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" /etc/profile; then
+  sed '/trap exit SIGHUP SIGINT SIGTERM #by busybox-power/d' /etc/profile > /tmp/profile.sed
+  mv /tmp/profile.sed /etc/profile
 fi