aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-03-11 20:02:08 +0000
committerJudd Vinet <judd@archlinux.org>2005-03-11 20:02:08 +0000
commit8aff6add70fd50b3febe363a0002098f21e2679b (patch)
tree23e82142270176251fbb0e4ce05171e763fddda6 /network
parent22805e822d4e9fee9c1f4331dee31bccd1db45d2 (diff)
downloadinitscripts-8aff6add70fd50b3febe363a0002098f21e2679b.tar.xz
added support for backgrounding daemons at startup with a '@' prefix, commented out the ldconfig call at startup, added support for unicode console maps, added a hotplug_ifup() function rc.d/network for hotplug's net.agent to use
Diffstat (limited to 'network')
-rwxr-xr-xnetwork15
1 files changed, 14 insertions, 1 deletions
diff --git a/network b/network
index d10c2ad..1513c58 100755
--- a/network
+++ b/network
@@ -12,6 +12,19 @@
# look for dhcpcd settings
[ -f /etc/conf.d/dhcpcd ] && . /etc/conf.d/dhcpcd
+# Special wrapper for hotplug ifup calls
+# (make sure hotplug doesn't bring up disabled interfaces)
+hotplug_ifup()
+{
+ [ "$1" != "" ] || return 1
+ for ifline in ${INTERFACES[@]}; do
+ # if the interface is disabled then this will be skipped
+ if [ "$ifline" = "$1" ]; then
+ ifup $ifline
+ fi
+ done
+}
+
ifup()
{
if [ "$1" = "" ]; then
@@ -173,7 +186,7 @@ case "$1" in
/bin/sleep 2
$0 start
;;
- ifup|ifdown|iflist|rtup|rtdown|rtlist)
+ hotplug_ifup|ifup|ifdown|iflist|rtup|rtdown|rtlist)
$1 $2
;;
*)