File privoxy-3.0.10-networkmanager.patch of Package privoxy

--- privoxy_nm
+++ privoxy_nm
@@ -0,0 +1,23 @@
+#! /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/privoxyd restart
+        fi
+        ;;
+    down)
+        if /sbin/chkconfig --check privoxy; then
+                /etc/init.d/privoxyd restart
+        fi
+        ;;
+    *)
+        exit 0
+        ;;
+esac
+
openSUSE Build Service is sponsored by