diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2018-07-28 04:25:03 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2018-11-25 19:12:27 -0600 |
commit | b9ebdbc16168dede9912bf359149856aa861f689 (patch) | |
tree | 34282487c254258a175074db9b15fa65a9a3a1fc /rc.inet1 | |
parent | 53d193c5314113e40aadd4675f75beeab910daca (diff) | |
download | slacknetsetup-b9ebdbc16168dede9912bf359149856aa861f689.tar.xz |
Update early skipping of unconfigured interfaces check
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -142,12 +142,14 @@ if_up() { fi # If the interface is a bridge, then create it first: [ -n "${BRNICS[$i]}" ] && br_open $i - # If the interface isn't in the kernel yet (but there's an alias for it in - # modules.conf), then it should be loaded first: - if [ -z "${IPADDR[$i]}" ] && [ "${USE_DHCP[$i]}" != "yes" ]; then # skip unconfigured interfaces + # Skip unconfigured interfaces: + if [ -z "${IPADDR[$i]}" ] && [ "${USE_DHCP[$i]}" != "yes" ] && [ -z "${IPADDR6[$i]}" ] && \ + [ "${USE_DHCP6[$i]}" != "yes" ] && [ "${USE_STATELESS[$i]}" != "yes" ]; then debug_log "skipping ${1} early, interface is not configured in /etc/rc.d/rc.inet1.conf" return 0 fi + # If the interface isn't in the kernel yet (but there's an alias for it in + # modules.conf), then it should be loaded first: if [ ! -e /sys/class/net/${1%%:*} ]; then # no interface yet if /sbin/modprobe -c | grep -v "^#" | grep -w "alias ${1}" | grep -vw "alias ${1} off" > /dev/null ; then echo "/etc/rc.d/rc.inet1: /sbin/modprobe ${1}" | $LOGGER |