summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/netcfg10
-rwxr-xr-xrc.d/net-auto-wired1
-rwxr-xr-xrc.d/net-profiles1
-rw-r--r--systemd/net-auto-wired.service1
4 files changed, 13 insertions, 0 deletions
diff --git a/config/netcfg b/config/netcfg
index 055a87d..b0610eb 100644
--- a/config/netcfg
+++ b/config/netcfg
@@ -1,3 +1,13 @@
+# Enable these netcfg profiles at boot-up.
+# - set to 'menu' to present a menu during boot-up (dialog package required)
+# - prefix an entry with a ! to disable it
+# Network profiles are found in /etc/network.d
+#
+#NETWORKS=(menu)
+
+## Define to the name of your wires interface for net-auto-wired
+WIRED_INTERFACE="eth0"
+
## Define to the name of your wireless interface for net-auto-wireless
WIRELESS_INTERFACE="wlan0"
diff --git a/rc.d/net-auto-wired b/rc.d/net-auto-wired
index 9af8505..9493857 100755
--- a/rc.d/net-auto-wired
+++ b/rc.d/net-auto-wired
@@ -2,6 +2,7 @@
. /etc/rc.conf
. /etc/rc.d/functions
+. /etc/conf.d/netcfg
if [[ ! -x /usr/sbin/ifplugd ]]; then
echo "Please install 'ifplugd' to use net-auto-wired"
diff --git a/rc.d/net-profiles b/rc.d/net-profiles
index cbaea30..15a1a4c 100755
--- a/rc.d/net-profiles
+++ b/rc.d/net-profiles
@@ -1,6 +1,7 @@
#!/bin/bash
. /usr/lib/network/globals
+. /etc/conf.d/netcfg
case "$1" in
start)
diff --git a/systemd/net-auto-wired.service b/systemd/net-auto-wired.service
index b356fef..321a62e 100644
--- a/systemd/net-auto-wired.service
+++ b/systemd/net-auto-wired.service
@@ -4,6 +4,7 @@ Before=network.target
[Service]
EnvironmentFile=/etc/rc.conf
+EnvironmentFile=/etc/conf.d/netcfg
EnvironmentFile=-/etc/ifplugd/ifplugd.conf
ExecStart=-/usr/sbin/ifplugd -i $WIRED_INTERFACE -r /etc/ifplugd/netcfg.action -fIn -u0 -d10
ExecStop=-/usr/sbin/ifplugd -k -i $WIRED_INTERFACE -r /etc/ifplugd/netcfg.action