diff options
Diffstat (limited to 'etc/devd.conf')
-rw-r--r-- | etc/devd.conf | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/etc/devd.conf b/etc/devd.conf index 310f293..847f6f5 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -11,6 +11,18 @@ options { [0-9]+"; }; +# Handle ethernet linkup and linkdown +notify 0 { + match "type" "LINK_UP"; + media-type "ethernet"; + action "/bin/echo -n '$subsystem start ' >>/tmp/rc.linkup"; +}; +notify 0 { + match "type" "LINK_DOWN"; + media-type "ethernet"; + action "/bin/echo -n '$subsystem stop ' >>/tmp/rc.linkup"; +}; + # When a USB keyboard arrives, attach it as the console keyboard. attach 100 { device-name "ukbd0"; @@ -21,12 +33,6 @@ detach 100 { action "kbdcontrol -k /dev/kbd0 < /dev/console"; }; -notify 0 { - match "type" "LINK_DOWN"; - media-type "ethernet"; - action "/bin/echo -n '$subsystem stop ' >>/tmp/rc.linkup"; -}; - # Notify all users before beginning emergency shutdown when we get # a _CRT or _HOT thermal event and we're going to power down the system # very soon. |