apply the workaround below system-wide
[busybox-power] / debian / busybox-power.prerm
index 3875fd2..713c53b 100644 (file)
@@ -3,3 +3,8 @@ set -e
 
 sh /opt/busybox-power/uninstall-binary.sh
 
+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
+