aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown8
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