From: Dennis Groenen Date: Fri, 8 Jul 2011 17:45:10 +0000 (+0200) Subject: apply the workaround below system-wide X-Git-Tag: 1.18.5power3~9 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=9f71981af8730353b1e3abb44888817891a888c1;p=busybox-power apply the workaround below system-wide --- diff --git a/debian/busybox-power.postinst b/debian/busybox-power.postinst index 2e6b89b..1a16365 100644 --- a/debian/busybox-power.postinst +++ b/debian/busybox-power.postinst @@ -4,7 +4,7 @@ set -e /opt/busybox-power/busybox.power sh /opt/busybox-power/install-binary.sh # Workaround for bug 5317 -if ! grep -q "trap exit SIGHUP SIGINT SIGTERM" /home/user/.profile; then - echo "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" >> /home/user/.profile +if ! grep -q "trap exit SIGHUP SIGINT SIGTERM" /etc/profile; then + echo "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" >> /etc/profile fi diff --git a/debian/busybox-power.prerm b/debian/busybox-power.prerm index 1be3836..713c53b 100644 --- a/debian/busybox-power.prerm +++ b/debian/busybox-power.prerm @@ -3,8 +3,8 @@ set -e sh /opt/busybox-power/uninstall-binary.sh -if grep -q "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" /home/user/.profile; then - sed '/trap exit SIGHUP SIGINT SIGTERM #by busybox-power/d' /home/user/.profile > /tmp/.profile.sed - mv /tmp/.profile.sed /home/user/.profile +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