/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
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