# 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
# Kill off any running browser-switchboard to make sure that the
# default browser gets launched
kill_old_proxies
+
+ # Clear hildon-control-panel's cached screenshot of itself
+ # Workaround for https://bugs.maemo.org/show_bug.cgi?id=9512
+ if [ -f /home/user/.cache/launch/com.nokia.controlpanel.pvr ]; then
+ rm -f /home/user/.cache/launch/com.nokia.controlpanel.pvr
+ fi
;;
upgrade|disappear)
# Kill off any running browser-switchboard to make sure that the new