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 |
|
|