diff options
author | brooks <brooks@FreeBSD.org> | 2005-09-02 17:05:07 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2005-09-02 17:05:07 +0000 |
commit | 1b74cef931999b2593e67c11e9197f05b3293ac1 (patch) | |
tree | 5db77309ced04721566f1e409fc8a5c3253f0121 /etc/rc.d/netif | |
parent | b0c4bd3081aff87eafdfc9348387938b1f9acc1b (diff) | |
download | FreeBSD-src-1b74cef931999b2593e67c11e9197f05b3293ac1.zip FreeBSD-src-1b74cef931999b2593e67c11e9197f05b3293ac1.tar.gz |
Block SIGQUIT (Ctrl-C) while running in startup mode. This should allow
dhclient's to be killed without stopping all boot progress.
Minor cleanup of the interface list generation code.
Diffstat (limited to 'etc/rc.d/netif')
-rw-r--r-- | etc/rc.d/netif | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/netif b/etc/rc.d/netif index bad471b..073f204 100644 --- a/etc/rc.d/netif +++ b/etc/rc.d/netif @@ -51,6 +51,9 @@ network_start() # We're operating as a general network start routine. # + # disable SIGQUIT (Ctrl-c) when running at at startup + trap : 3 + # Create cloned interfaces clone_up @@ -102,9 +105,6 @@ network_common() fi [ -n "$2" ] && _verbose=yes - # Get a list of network interfaces. - _ifn_list="`list_net_interfaces`" - # Set the scope of the command (all interfaces or just one). # _cooked_list= @@ -114,7 +114,7 @@ network_common() # kill off wpa_supplicant. _cooked_list="$_cmdifn" else - _cooked_list="$_ifn_list" + _cooked_list="`list_net_interfaces`" fi for ifn in ${_cooked_list}; do |