diff options
author | Bill Nottingham <notting@redhat.com> | 2001-01-02 22:42:09 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-01-02 22:42:09 +0000 |
commit | 7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8 (patch) | |
tree | 8fe8e14c01f63f321ab529edd56023ec15748633 /rc.d/init.d/network | |
parent | cb5252165b2406727af56dc1710329eec744c65c (diff) | |
download | initscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.tar initscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.tar.gz initscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.tar.bz2 initscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.tar.xz initscripts-7ed6e7f4fbbde532e3cc0c9f5ccaa0a114dfbee8.zip |
Big i18n commit. From Conectiva, originally.
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 |