aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-07-24 20:47:06 +0000
committerBill Nottingham <notting@redhat.com>2001-07-24 20:47:06 +0000
commit2604a03f2105ed34bdd08817ee91bb653a478bf0 (patch)
treeae9dc8b6d2b29290f1455ec7869b5ffa0ccf4392 /sysconfig/network-scripts/ifdown
parentee673429a7dae3de798f97ec323ea2530c22348e (diff)
downloadinitscripts-2604a03f2105ed34bdd08817ee91bb653a478bf0.tar
initscripts-2604a03f2105ed34bdd08817ee91bb653a478bf0.tar.gz
initscripts-2604a03f2105ed34bdd08817ee91bb653a478bf0.tar.bz2
initscripts-2604a03f2105ed34bdd08817ee91bb653a478bf0.tar.xz
initscripts-2604a03f2105ed34bdd08817ee91bb653a478bf0.zip
do config expansion (NETMASK, PREFIX, etc) in a function, call it from ifdown (fixes #49777, #49783)
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index a1a7c27a..3ccf4547 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -52,6 +52,8 @@ if [ "${NETWORKING_IPV6}" = "yes" ]; then
/etc/sysconfig/network-scripts/ifdown-ipv6 ${CONFIG}
fi
+expand_config
+
retcode=0
if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
[ -n "`pidof -x dhcpcd`" ] && {