workaround for bug 5317 - "Busybox doesn't handle SIGHUP properly"
[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" /home/user/.profile; then
7   sed '/trap exit SIGHUP SIGINT SIGTERM #by busybox-power/d' /home/user/.profile > /tmp/.profile.sed
8   mv /tmp/.profile.sed /home/user/.profile
9 fi
10