Magellan Linux

Diff of /trunk/busybox-initscripts/rc/network

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1230 by niro, Thu Feb 17 22:24:59 2011 UTC revision 1231 by niro, Thu Mar 10 19:19:19 2011 UTC
# Line 131  onboot_interface_list() Line 131  onboot_interface_list()
131   # get list of all devices   # get list of all devices
132   for file in $@   for file in $@
133   do   do
134     iface="$(basename ${file} | sed s/net.//)"
135    
136     # exclude backup files and exclude net.routes and net.sample too
137     case "${iface}" in
138     *~) continue ;;
139     routes) continue ;;
140     sample) continue ;;
141     esac
142    
143   if [[ $(read_value ONBOOT ${file}) = yes ]]   if [[ $(read_value ONBOOT ${file}) = yes ]]
144   then   then
145   iface="$(basename ${file} | sed s/net.//)"   devices="${devices} ${iface}"
  # exclude backup files and exclude net.routes too  
  case "${iface}" in  
  *~) ;;  
  */net.routes) ;;  
  *) devices="${devices} $(basename ${file} | sed s/net.//)" ;;  
  esac  
146   fi   fi
147   done   done
148    

Legend:
Removed from v.1230  
changed lines
  Added in v.1231