/opt/busybox-power/busybox.power sh /opt/busybox-power/install-binary.sh
# Workaround for bug 5317
-if ! grep -q "trap exit SIGHUP SIGINT SIGTERM" /etc/profile; then
- echo "trap exit SIGHUP SIGINT SIGTERM #by busybox-power" >> /etc/profile
+line="trap exit SIGHUP #by busybox-power"
+if ! grep -F -q "$line" /etc/profile; then
+ echo "$line" >> /etc/profile
fi
sh /opt/busybox-power/uninstall-binary.sh
-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
+line="trap exit SIGHUP #by busybox-power"
+if grep -F -q "$line" /etc/profile; then
+ sed "/$line/d" /etc/profile > /tmp/profile.sed
mv /tmp/profile.sed /etc/profile
fi