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