Move ${shlibs:Depends} to the front of the Depends line
[browser-switch] / debian / postrm
index e2c989c..80d92c9 100644 (file)
@@ -19,12 +19,14 @@ set -e
 # the debian-policy package
 
 kill_old_proxies() {
 # the debian-policy package
 
 kill_old_proxies() {
-       # Kill off browser-switchboards
+       # Kill off old python browser-switchboards, if any
        # This would be so much nicer with pgrep/pkill ...
        # This would be so much nicer with pgrep/pkill ...
-       proxy_pids=`busybox ps | fgrep browser-switchboard | fgrep -v grep | fgrep -v browser-switchboard.postrm | awk '{ print $1 }'`
+       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
        if [ ! -z "$proxy_pids" ]; then
                kill $proxy_pids
        fi
+       # Kill off C browser-switchboards
+       kill `pidof browser-switchboard`
 }
 
 case "$1" in
 }
 
 case "$1" in