apply the workaround below system-wide
[busybox-power] / debian / busybox-power.prerm
1 #!/bin/sh
2 set -e
3
4 sh /opt/busybox-power/uninstall-binary.sh
5
6 if grep -q "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" /etc/profile; then
7   sed '/trap exit SIGHUP SIGINT SIGTERM #by busybox-power/d' /etc/profile > /tmp/profile.sed
8   mv /tmp/profile.sed /etc/profile
9 fi
10