projects
/
busybox-power
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove workaround for bug 5317
[busybox-power]
/
debian
/
busybox-power.prerm
diff --git
a/debian/busybox-power.prerm
b/debian/busybox-power.prerm
index
74a9f95
..
9d2978d
100644
(file)
--- a/
debian/busybox-power.prerm
+++ b/
debian/busybox-power.prerm
@@
-3,6
+3,10
@@
set -e
sh /opt/busybox-power/uninstall-binary.sh
sh /opt/busybox-power/uninstall-binary.sh
+# Clean up trap (from busybox-power <= 1.20.2power1)
+# Should be removed by the old prerm, but may be left behind when that one fails
+# and dpkg uses this one instead. Therefore, keep this cleanup included for a
+# few busybox-power releases.
line="trap exit SIGHUP #by busybox-power"
if grep -F -q "$line" /etc/profile; then
sed "/$line/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