diff options
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 92da47db..bae7b9b0 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -5,18 +5,23 @@ # chkconfig: - 10 90 # description: Activates/Deactivates all network interfaces configured to \ # start at boot time. +# probe: false # ### BEGIN INIT INFO -# Provides: $network -# Should-Start: iptables ip6tables NetworkManager-wait-online NetworkManager $network-pre +# Provides: network +# Should-Start: irda resolvconf iptables ip6tables NetworkManager-wait-online NetworkManager +# Should-Stop: irda resolvconf +# Default-Start: 2 3 4 5 # Short-Description: Bring up/down networking -# Description: Bring up/down networking +# Description: Activates/Deactivates all network interfaces configured to +# start at boot time. ### END INIT INFO # Source function library. . /etc/init.d/functions if [ ! -f /etc/sysconfig/network ]; then + echo "NETWORKING=no" > /etc/sysconfig/network exit 6 fi @@ -44,9 +49,10 @@ cd /etc/sysconfig/network-scripts interfaces=$(ls ifcfg-* | \ LC_ALL=C sed -e "$__sed_discard_ignored_files" \ -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \ - -e '{ s/^ifcfg-//g;s/[0-9]/ &/}' | \ + -e '/ifcfg-[ A-Za-z0-9#\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \ + LC_ALL=C grep -v '^ifcfg-' | \ LC_ALL=C sort -k 1,1 -k 2n | \ - LC_ALL=C sed 's/ //') + LC_ALL=C sed -e 's/ \([0-9]\)/\1/') rc=0 # See how we were called. |