[BACK]Return to netstart CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/netstart between version 1.192 and 1.193

version 1.192, 2018/02/17 13:11:03 version 1.193, 2018/02/19 21:47:43
Line 84 
Line 84 
         local _vif _hn _if          local _vif _hn _if
   
         for _vif in $(ifconfig -C); do          for _vif in $(ifconfig -C); do
                 for _hn in /etc/hostname.${_vif}*; do                  for _hn in /etc/hostname.${_vif}+([[:digit:]]); do
                         [[ -f $_hn ]] || continue                          [[ -f $_hn ]] || continue
                         _if=${_hn#/etc/hostname.}                          _if=${_hn#/etc/hostname.}
   
                         ifcreate $_if || return                          if ! ifcreate $_if; then
                                   echo "${0##*/}: create for '$_if' failed."
                           fi
                 done                  done
         done          done
 }  }
Line 149 
Line 151 
         local _sifs=$1 _xifs=$2 _hn _if _sif _xif          local _sifs=$1 _xifs=$2 _hn _if _sif _xif
   
         for _sif in ${_sifs:-ALL}; do          for _sif in ${_sifs:-ALL}; do
                 for _hn in /etc/hostname.*; do                  for _hn in /etc/hostname.+([[:alpha:]])+([[:digit:]]); do
                           [[ -f $_hn ]] || continue
                         _if=${_hn#/etc/hostname.}                          _if=${_hn#/etc/hostname.}
                         [[ $_if == '*' ]] && continue  
   
                         # Skip unwanted ifs.                          # Skip unwanted ifs.
                         for _xif in $_xifs; do                          for _xif in $_xifs; do

Legend:
Removed from v.1.192  
changed lines
  Added in v.1.193