aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 1cd03d7c..eec308e4 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -13,7 +13,8 @@ CONFIG=$1
exit 1
}
-[ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG
+need_config
+
[ -f "$CONFIG" ] || {
echo $"usage: ifdown <device name>" >&2
exit 1