Update changelog, bump version number
[browser-switch] / debian / postrm
index 72d9b3f..767a4ce 100644 (file)
@@ -19,11 +19,17 @@ set -e
 # the debian-policy package
 
 kill_old_proxies() {
+       # Kill off old python browser-switchboards, if any
        # This would be so much nicer with pgrep/pkill ...
        proxy_pids=`busybox ps | fgrep "python /usr/bin/browser-switchboard" | fgrep -v grep | awk '{ print $1 }'`
        if [ ! -z "$proxy_pids" ]; then
                kill $proxy_pids
        fi
+       # Kill off C browser-switchboards
+       proxy_pids=`pidof browser-switchboard || true`
+       if [ ! -z "$proxy_pids" ]; then
+               kill $proxy_pids
+       fi
 }
 
 case "$1" in