]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
ignore ifcfg-* files which have no DEVICE line present, i.e WiFi networks generated...
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Feb 2013 15:04:58 +0000 (15:04 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Feb 2013 15:04:58 +0000 (15:04 +0000)
svn-id: @12616

rc.d/init.d/network

index c4ebabd1046815bc97e9614edafe02c6c5952cff..9521c0fbf3bba1c2e8495f7fa4eb29bab529722b 100755 (executable)
@@ -135,8 +135,9 @@ find_boot_interfaces() {
                                case $i in
                                        *ifcfg-lo) continue ;;
                                esac
-                               ONBOOT=""; USERS=""; . "$i" 2>/dev/null
+                               DEVICE=""; ONBOOT=""; USERS=""; . "$i" 2>/dev/null
                                [ ${USERS:-no} != no ] && continue
+                               [ "${DEVICE:+set}" != "set" ] && continue
                                [ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
                        done
                `
@@ -146,8 +147,9 @@ find_boot_interfaces() {
                                case ${i##*/} in
                                        ifcfg-lo|ifcfg-sit*|ifcfg-atm*|ifcfg-lec*|ifcfg-nas*|ifcfg-br*|ifcfg-macvlan*|ifcfg-macvtap*|ifcfg-*.*) continue ;;
                                esac
-                               ONBOOT=""; USERS=""; . "$i" 2>/dev/null
+                               DEVICE=""; ONBOOT=""; USERS=""; . "$i" 2>/dev/null
                                [ ${USERS:-no} != no ] && continue
+                               [ "${DEVICE:+set}" != "set" ] && continue
                                [ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
                        done
                `
This page took 0.038338 seconds and 4 git commands to generate.