Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalwareutils.git;a=commitdiff;h=ac2f99161ba8a6eb14dc12674e39778c9d5dc930

commit ac2f99161ba8a6eb14dc12674e39778c9d5dc930
Author: James Buren <[email protected]>
Date:   Tue Apr 10 07:28:44 2012 -0500

initial import of netconfig rfkill handling

diff --git a/netconfig/netconfig-rfkill.rules b/netconfig/netconfig-rfkill.rules
new file mode 100644
index 0000000..159e6c7
--- /dev/null
+++ b/netconfig/netconfig-rfkill.rules
@@ -0,0 +1,2 @@
+SUBSYSTEM=="rfkill", ACTION=="change", ATTR{type}=="wlan", ATTR{state}!="1", 
RUN+="/sbin/netconfig-udev-wrapper stop"
+SUBSYSTEM=="rfkill", ACTION=="change", ATTR{type}=="wlan", ATTR{state}=="1", 
RUN+="/sbin/netconfig-udev-wrapper start"
diff --git a/netconfig/netconfig-udev-wrapper b/netconfig/netconfig-udev-wrapper
new file mode 100644
index 0000000..918e12f
--- /dev/null
+++ b/netconfig/netconfig-udev-wrapper
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+case $1 in
+stop)
+  /bin/systemctl stop netconfig.service
+  ;;
+start)
+  /usr/bin/sleep 5
+  /bin/systemctl start netconfig.service
+  ;;
+esac
+
+exit 0
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to