diff options
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-x | rc.d/init.d/network | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 6e348d52..46f84493 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -45,7 +45,7 @@ case "$1" in action "Setting network parameters: " sysctl -p /etc/sysctl.conf - action "Bringing up interface lo: " ./ifup ifcfg-lo + action "Bringing up interface %s: " lo ./ifup ifcfg-lo case "$IPX" in yes|true) @@ -94,7 +94,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 %s: " $i ./ifdown $i boot fi done case "$IPX" in @@ -121,18 +121,18 @@ case "$1" in rm -f /var/lock/subsys/network ;; status) - echo "Configured devices:" + gprintf "Configured devices:\n" echo lo $interfaces if [ -x /sbin/linuxconf ] ; then eval `/sbin/linuxconf --hint netdev` - echo "Devices that are down:" + gprintf "Devices that are down:\n" echo $DEV_UP - echo "Devices with modified configuration:" + gprintf "Devices with modified configuration:\n" echo $DEV_RECONF else - echo "Currently active devices:" - echo `/sbin/ifconfig | grep ^[a-z] | awk '{print $1}'` + gprintf "Currently active devices:\n" + echo `LC_ALL= LANG= /sbin/ifconfig | grep ^[a-z] | awk '{print $1}'` fi ;; restart) @@ -144,26 +144,26 @@ case "$1" in if [ -x /sbin/linuxconf ] ; then eval `/sbin/linuxconf --hint netdev` for device in $DEV_UP ; do - action "Bringing up device $device: " ./ifup $device + action "Bringing up device %s: " $device ./ifup $device done for device in $DEV_DOWN ; do - action "Shutting down device $device: " ./ifdown $device + action "Shutting down device %s: " $device ./ifdown $device done for device in $DEV_RECONF ; do - action "Shutting down device $device: " ./ifdown $device - action "Bringing up device $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 "Briging up alias $device: " /etc/sysconfig/network-scripts/ifup-aliases $device + action "Briging up alias %s: " $device /etc/sysconfig/network-scripts/ifup-aliases $device done for device in $DEV_RECONF_ROUTES ; do - action "Bringing up route $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 $IPXINTERNALNETNUM $IPXINTERNALNODENUM: " /sbin/ipx_internal_net add $IPXINTERNALNETNUM \ + action "Adding internal IPX network %s %s: " $IPXINTERNALNETNUM $IPXINTERNALNODENUM /sbin/ipx_internal_net add $IPXINTERNALNETNUM \ $IPXINTERNALNODENUM ;; add) @@ -197,7 +197,7 @@ case "$1" in fi ;; *) - echo "Usage: network {start|stop|restart|reload|status|probe}" + gprintf "Usage: %s {start|stop|restart|reload|status|probe}\n" "network" exit 1 esac |