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

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

version 1.191, 2018/02/14 22:08:45 version 1.192, 2018/02/17 13:11:03
Line 72 
Line 72 
         set +o noglob          set +o noglob
 }  }
   
   # Create interface $1 if it does not yet exist.
 ifcreate() {  ifcreate() {
         local _if=$1          local _if=$1
   
         { ifconfig $_if || ifconfig $_if create; } >/dev/null 2>&1 || return          { ifconfig $_if || ifconfig $_if create; } >/dev/null 2>&1
 }  }
   
   # Create interfaces for network pseudo-devices referred to by hostname.if files.
 vifscreate() {  vifscreate() {
         local _vifs=$(ifconfig -C) _vif _hn _if          local _vif _hn _if
   
         for _vif in ${_vifs}; do          for _vif in $(ifconfig -C); do
                 for _hn in /etc/hostname.${_vif}*; do                  for _hn in /etc/hostname.${_vif}*; do
                         [[ -f $_hn ]] || continue                          [[ -f $_hn ]] || continue
                         _if=${_hn#/etc/hostname.}                          _if=${_hn#/etc/hostname.}
   
                         # Create wanted ifs.  
                         ifcreate $_if || return                          ifcreate $_if || return
                 done                  done
         done          done

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