summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-26 01:45:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-26 01:45:19 +0000
commit48906a096ca334924a3f3885d492fe03092f22a5 (patch)
treede9fe0954cc5f91abc818ed674f6ccb77c775d12 /etc/devd.conf
parent61cbb18369f44858bea63c61f968ad1d30b4508d (diff)
downloadpfsense-48906a096ca334924a3f3885d492fe03092f22a5.zip
pfsense-48906a096ca334924a3f3885d492fe03092f22a5.tar.gz
Allow plugging and unplugging of ethernet interfaces (and wireless)
Diffstat (limited to 'etc/devd.conf')
-rw-r--r--etc/devd.conf27
1 files changed, 7 insertions, 20 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index ae15b75..3faf937 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -3,6 +3,7 @@
options {
directory "/etc/devd";
+ directory "/usr/local/etc/devd";
pid-file "/var/run/devd.pid";
set scsi-controller-regex
"(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\
@@ -11,25 +12,13 @@ options {
};
# Handle ethernet linkup and linkdown
-attach 0 {
- media-type "ethernet";
- action "/etc/rc.linkup $device-name start";
+notify 0 {
+ match "type" "LINK_UP";
+ action "/usr/local/bin/php -f /etc/rc.linkup $subsystem start";
};
-
-detach 0 {
- media-type "ethernet";
- action "/etc/rc.linkup $device-name stop";
-};
-
-# Handle wireless linkup and linkdown
-detach 0 {
- media-type "802.11";
- action "/etc/rc.linkup $device-name start";
-};
-
-attach 0 {
- media-type "802.11";
- action "/etc/rc.linkup $device-name stop";
+notify 0 {
+ match "type" "LINK_DOWN";
+ action "/usr/local/bin/php -f /etc/rc.linkup $subsystem stop";
};
# When a USB keyboard arrives, attach it as the console keyboard.
@@ -37,7 +26,6 @@ attach 100 {
device-name "ukbd0";
action "kbdcontrol -k /dev/ukbd0 < /dev/console";
};
-
detach 100 {
device-name "ukbd0";
action "kbdcontrol -k /dev/kbd0 < /dev/console";
@@ -52,4 +40,3 @@ notify 10 {
match "notify" "0xcc";
action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'";
};
-
OpenPOWER on IntegriCloud