aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-23 20:15:59 +0000
committerBill Nottingham <notting@redhat.com>2001-01-23 20:15:59 +0000
commit3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72 (patch)
tree0f0e78f3634deed3d2c36161430ecbdbd6b53bf2 /rc.d/init.d/network
parenta4a25465cd2844d72bf518188b813c009450f505 (diff)
downloadinitscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.tar
initscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.tar.gz
initscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.tar.bz2
initscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.tar.xz
initscripts-3b0c07cb110c35ecb9b68ccc0fce8ed5f865cd72.zip
tag action, runcmd, etc. lines as well
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-xrc.d/init.d/network32
1 files changed, 16 insertions, 16 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 61ad8fb9..db379c53 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -44,9 +44,9 @@ interfaces=`ls ifcfg* | egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \
case "$1" in
start)
- action "Setting network parameters: " sysctl -p /etc/sysctl.conf
+ action $"Setting network parameters: " sysctl -p /etc/sysctl.conf
- action "Bringing up interface lo: " ./ifup ifcfg-lo
+ action $"Bringing up interface lo: " ./ifup ifcfg-lo
case "$IPX" in
yes|true)
@@ -82,7 +82,7 @@ case "$1" in
esac
}
- action "Bringing up interface $i: " ./ifup $i boot
+ action $"Bringing up interface $i: " ./ifup $i boot
fi
done
@@ -114,7 +114,7 @@ case "$1" in
for i in $interfaces ; do
if LC_ALL= LANG= ifconfig $i 2>/dev/null | grep -q " UP " >/dev/null 2>&1 ; then
- action "Shutting down interface $i: " ./ifdown $i boot
+ action $"Shutting down interface $i: " ./ifdown $i boot
fi
done
case "$IPX" in
@@ -128,12 +128,12 @@ case "$1" in
if [ -d /proc/sys/net/ipv4 ]; then
if [ -f /proc/sys/net/ipv4/ip_forward ]; then
if [ `cat /proc/sys/net/ipv4/ip_forward` != 0 ]; then
- action "Disabling IPv4 packet forwarding: " sysctl -w net.ipv4.ip_forward=0
+ action $"Disabling IPv4 packet forwarding: " sysctl -w net.ipv4.ip_forward=0
fi
fi
if [ -f /proc/sys/net/ipv4/ip_always_defrag ]; then
if [ `cat /proc/sys/net/ipv4/ip_always_defrag` != 0 ]; then
- action "Disabling IPv4 automatic defragmentation: " sysctl -w net.ipv4.ip_always_defrag=0
+ action $"Disabling IPv4 automatic defragmentation: " sysctl -w net.ipv4.ip_always_defrag=0
fi
fi
fi
@@ -164,34 +164,34 @@ case "$1" in
if [ -x /sbin/linuxconf ] ; then
eval `/sbin/linuxconf --hint netdev`
for device in $DEV_UP ; do
- action "Bringing up device %s: " $device ./ifup $device
+ action $"Bringing up device %s: " $device ./ifup $device
done
for device in $DEV_DOWN ; do
- action "Shutting down device %s: " $device ./ifdown $device
+ action $"Shutting down device %s: " $device ./ifdown $device
done
for device in $DEV_RECONF ; do
- action "Shutting down device %s: " $device ./ifdown $device
- action "Bringing up device %s: " $device ./ifup $device
+ action $"Shutting down device %s: " $device ./ifdown $device
+ action $"Bringing up device %s: " $device ./ifup $device
done
for device in $DEV_RECONF_ALIASES ; do
- action "Bringing up alias %s: " $device /etc/sysconfig/network-scripts/ifup-aliases $device
+ action $"Bringing up alias %s: " $device /etc/sysconfig/network-scripts/ifup-aliases $device
done
for device in $DEV_RECONF_ROUTES ; do
- action "Bringing up route %s: " $device /etc/sysconfig/network-scripts/ifup-routes $device
+ action $"Bringing up route %s: " $device /etc/sysconfig/network-scripts/ifup-routes $device
done
case $IPX in yes|true)
case $IPXINTERNALNET in
reconf)
- action "Deleting internal IPX network: " /sbin/ipx_internal_net del
- action "Adding internal IPX network %s %s: " $IPXINTERNALNETNUM $IPXINTERNALNODENUM /sbin/ipx_internal_net add $IPXINTERNALNETNUM \
+ action $"Deleting internal IPX network: " /sbin/ipx_internal_net del
+ action $"Adding internal IPX network %s %s: " $IPXINTERNALNETNUM $IPXINTERNALNODENUM /sbin/ipx_internal_net add $IPXINTERNALNETNUM \
$IPXINTERNALNODENUM
;;
add)
- action "Adding internal IPX network $IPXINTERNALNETNUM $IPXINTERNALNODENUM: "/sbin/ipx_internal_net add $IPXINTERNALNETNUM \
+ action $"Adding internal IPX network $IPXINTERNALNETNUM $IPXINTERNALNODENUM: "/sbin/ipx_internal_net add $IPXINTERNALNETNUM \
$IPXINTERNALNODENUM
;;
del)
- action "Deleting internal IPX network: " /sbin/ipx_internal_net del
+ action $"Deleting internal IPX network: " /sbin/ipx_internal_net del
;;
esac
;;