Initial import
Benjamin Renard

Benjamin Renard commited on 2011-09-06 14:06:40
Showing 3 changed files, with 8 additions and 0 deletions.

... ...
@@ -0,0 +1,3 @@
1
+# Execution du script onNetDeviceAddOrRemove lors de l'ajout ou la suppression d'une interface
2
+# Rechargement des r├Ęgles udev si n├ęcessaire : udevadm control --reload-rules
3
+SUBSYSTEMS=="net", RUN+="/usr/local/sbin/onNetDeviceAddOrRemove"
... ...
@@ -0,0 +1,5 @@
1
+#!/bin/bash
2
+
3
+[ "$SUBSYSTEM" != "net" ] && exit
4
+
5
+echo $( date ) - Interface $INTERFACE $ACTION >> /tmp/netdev.log
0 6