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 /sysconfig/network-scripts/ifdown | |
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 'sysconfig/network-scripts/ifdown')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index fe1b3aba..53a28f8b 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -1,19 +1,21 @@ #!/bin/sh PATH=/sbin:/usr/sbin:/bin:/usr/bin +TEXTDOMAIN=initscripts cd /etc/sysconfig/network-scripts . network-functions +. /etc/rc.d/init.d/functions CONFIG=$1 [ -z "$CONFIG" ] && { - echo "usage: ifdown <device name>" >&2 + gprintf "usage: %s <device name>\n" ifdown >&2 exit 1 } [ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG [ -f "$CONFIG" ] || { - echo "usage: ifdown <device name>" >&2 + gprintf "usage: %s <device name>\n" ifdown >&2 exit 1 } @@ -23,7 +25,7 @@ if [ $UID != 0 ]; then exec /usr/sbin/usernetctl $CONFIG down fi fi - echo "Users cannot control this device." >&2 + gprintf "Users cannot control this device.\n" >&2 exit 1 fi |