X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=debian%2Fbusybox-power.prerm;h=9d2978d7cbe7cbf003258563ae67195fb8dee99b;hb=7aa6ae1025dbcc882c47126561e8fa09dfc0f0c7;hp=74a9f95a0d809b780a3380951ca4dad29340a4d9;hpb=6e15aba5c330236e0d5691b8571af67802d89daf;p=busybox-power diff --git a/debian/busybox-power.prerm b/debian/busybox-power.prerm index 74a9f95..9d2978d 100644 --- a/debian/busybox-power.prerm +++ b/debian/busybox-power.prerm @@ -3,6 +3,10 @@ set -e 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