summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-14 05:40:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-14 05:40:02 +0000
commit36f662863cba4b938940c6e116172de320e6bb61 (patch)
tree69dae44a0bf517f387be16eec02b2784e351d698 /etc/devd.conf
parentd6862c98a390e24d7f3680b3d118bf67f725fa9e (diff)
downloadpfsense-36f662863cba4b938940c6e116172de320e6bb61.zip
pfsense-36f662863cba4b938940c6e116172de320e6bb61.tar.gz
Add missing dhclient entry?
Diffstat (limited to 'etc/devd.conf')
-rw-r--r--etc/devd.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index 847f6f5..0167f8c 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -17,6 +17,7 @@ notify 0 {
media-type "ethernet";
action "/bin/echo -n '$subsystem start ' >>/tmp/rc.linkup";
};
+
notify 0 {
match "type" "LINK_DOWN";
media-type "ethernet";
@@ -28,11 +29,25 @@ attach 100 {
device-name "ukbd0";
action "kbdcontrol -k /dev/ukbd0 < /dev/console";
};
+
detach 100 {
device-name "ukbd0";
action "kbdcontrol -k /dev/kbd0 < /dev/console";
};
+#
+# Try to start dhclient on Ethernet like interfaces when the link comes
+# up. Only devices that are configured to support DHCP will actually
+# run it. No link down rule exists because dhclient automaticly exits
+# when the link goes down.
+#
+notify 0 {
+ match "system" "IFNET";
+ match "type" "LINK_UP";
+ media-type "ethernet";
+ action "/bin/echo -n '$subsystem start ' >>/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.
OpenPOWER on IntegriCloud