#! /bin/sh
#
# privoxy - rerun privoxy in response to interface change
#
# Ladislav Michnovic <lmichnovic@suse.cz>
# This script should go into /etc/NetworkManager/dispatcher.d/ directory.

case "$2" in
    up)
        if /sbin/chkconfig --check privoxy; then
            /etc/init.d/privoxy restart
        fi
        ;;
    down)
        if /sbin/chkconfig --check privoxy; then
                /etc/init.d/privoxy restart
        fi
        ;;
    *)
        exit 0
        ;;
esac

