diff options
Diffstat (limited to 'etc/rc.d/netoptions')
-rw-r--r-- | etc/rc.d/netoptions | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index 2bf0b58..b715539 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -127,6 +127,11 @@ network_pass1() { ;; esac + # Attempt to create cloned interfaces. + for ifn in ${cloned_interfaces}; do + ifconfig ${ifn} create + done + # Special options for sppp(4) interfaces go here. These need # to go _before_ the general ifconfig section, since in the case # of hardwired (no link1 flag) but required authentication, you @@ -151,6 +156,9 @@ network_pass1() { [Aa][Uu][Tt][Oo]) network_interfaces="`ifconfig -l`" ;; + *) + network_interfaces="${network_interfaces} ${cloned_interfaces}" + ;; esac dhcp_interfaces="" @@ -795,7 +803,8 @@ network_gif_setup() { continue ;; *) - ifconfig $i create tunnel ${peers} + ifconfig $i create >/dev/null 2>&1 + ifconfig $i tunnel ${peers} ;; esac done |