apply the workaround below system-wide
[busybox-power] / debian / busybox-power.postinst
1 #!/bin/sh
2 set -e
3
4 /opt/busybox-power/busybox.power sh /opt/busybox-power/install-binary.sh
5
6 # Workaround for bug 5317
7 if ! grep -q "trap exit SIGHUP SIGINT SIGTERM" /etc/profile; then
8   echo "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" >> /etc/profile
9 fi
10