]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Small cosmetics.
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 7 Dec 2006 21:52:31 +0000 (21:52 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 7 Dec 2006 21:52:31 +0000 (21:52 +0000)
svn-id: @8085

rc.d/init.d/network

index fef356e27a6870de49dc95d6b5dc0cab20f2f479..35ecf788866fd4bfd36cf69c46a989559806033b 100644 (file)
@@ -23,7 +23,7 @@ fi
 
 # Will be removed in the future
 if [ -n "$NETWORKING" ] && is_yes "$NETWORKING"; then
-       if [ -z "$IPV4_NETWORKING" ] ; then
+       if [ -z "$IPV4_NETWORKING" ]; then
                echo "NETWORKING is set to YES, but IPV4_NETWORKING is empty!"
                echo "Please upgrade your config"
                echo "Assuming you want IPv4 networking"
@@ -139,7 +139,7 @@ find_boot_interfaces() {
                                        *ifcfg-lo) continue ;;
                                esac
                                ONBOOT=""; . "$i" 2>/dev/null
-                               is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+                               [ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
                        done
                `
        else
@@ -149,7 +149,7 @@ find_boot_interfaces() {
                                        ifcfg-lo|ifcfg-sit*|ifcfg-atm*|ifcfg-lec*|ifcfg-nas*|ifcfg-br*|ifcfg-*.*) continue ;;
                                esac
                                ONBOOT=""; . "$i" 2>/dev/null
-                               is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+                               [ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
                        done
                `
 
@@ -160,7 +160,7 @@ find_boot_interfaces() {
                                        *) continue ;;
                                esac
                                ONBOOT=""; . "$i" 2>/dev/null
-                               is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+                               [ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
                        done
                `
 
@@ -171,7 +171,7 @@ find_boot_interfaces() {
                                        *) continue ;;
                                esac
                                ONBOOT=""; . "$i" 2>/dev/null
-                               is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+                               [ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
                        done
                `
 
@@ -182,7 +182,7 @@ find_boot_interfaces() {
                                        *) continue ;;
                                esac
                                ONBOOT=""; . "$i" 2>/dev/null
-                               is_yes "$ONBOOT" && echo "${i##*/ifcfg-}"
+                               [ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
                        done
                `
        fi
@@ -190,7 +190,7 @@ find_boot_interfaces() {
        tunnels=`
                for i in $(network_interface_configs 'tnlcfg-*'); do
                        ONBOOT=""; . "$i" 2>/dev/null
-                       is_yes "$ONBOOT" && echo "${i##*/tnlcfg-}"
+                       [ ${ONBOOT:-no} = yes ] && echo "${i##*/tnlcfg-}"
                done
        `
 }
@@ -199,7 +199,7 @@ start() {
        rc_splash "bootnetwork start"
        network_init
 
-       for i in $interfaces_boot $interfaces_vlan_boot $interfaces_sit_boot ; do
+       for i in $interfaces_boot $interfaces_vlan_boot $interfaces_sit_boot; do
                run_cmd -a "$(nls 'Bringing up interface %s' "$i")" /sbin/ifup $i boot
        done
 
This page took 0.034273 seconds and 4 git commands to generate.