X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=rc.d%2Finit.d%2Fnetwork;h=cf670a74a19899f20252996e10267a07236307d9;hb=HEAD;hp=5e8cd207361485961756b0daca3af1b1dbdf0216;hpb=49ade4f4b5b1978db4561d62063008a339a1526f;p=rc-scripts.git diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 5e8cd20..cf670a7 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -168,7 +168,7 @@ find_boot_interfaces() { DEVICE=""; ONBOOT=""; USERS=""; . "$i" 2>/dev/null [ "${DEVICE:+set}" != "set" ] && continue [ ${USERS:-no} != no ] && continue - is_yes [ ${ONBOOT:-no} && echo "${i##*/ifcfg-}" + is_yes ${ONBOOT:-no} && echo "${i##*/ifcfg-}" done ` @@ -356,11 +356,7 @@ find_boot_interfaces # See how we were called. case "$1" in start) - if is_yes "$VSERVER_ISOLATION_NET"; then - touch /var/lock/subsys/network - else - start - fi + start ;; start_init) network_init @@ -374,11 +370,7 @@ case "$1" in rm -f /var/lock/subsys/network ;; stop) - if is_yes "$VSERVER_ISOLATION_NET"; then - rm -f /var/lock/subsys/network >/dev/null 2>&1 - else - stop - fi + stop ;; status) @@ -394,18 +386,11 @@ case "$1" in ;; reload) - if is_yes "$VSERVER_ISOLATION_NET"; then - exit 0 - fi shift reload ${1:+"$@"} ;; restart) - if is_yes "$VSERVER_ISOLATION_NET"; then - exit 0 - fi - stop start ;;