aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorJiri Popelka <jpopelka@redhat.com>2012-10-05 16:57:32 +0200
committerBill Nottingham <notting@redhat.com>2012-10-08 15:47:57 -0400
commit1d7446ccf9d2671857c5f554b2a0be484e95e640 (patch)
tree837708641db57ed3d6f8d270c14d256385d0210c /sysconfig/network-scripts
parentbf95e22c4164b82112d043169495a71d1bfa0068 (diff)
downloadinitscripts-1d7446ccf9d2671857c5f554b2a0be484e95e640.tar
initscripts-1d7446ccf9d2671857c5f554b2a0be484e95e640.tar.gz
initscripts-1d7446ccf9d2671857c5f554b2a0be484e95e640.tar.bz2
initscripts-1d7446ccf9d2671857c5f554b2a0be484e95e640.tar.xz
initscripts-1d7446ccf9d2671857c5f554b2a0be484e95e640.zip
Fix calling of firewall-cmd in ifup-post/ifdown-post.
firewall-cmd has been using combined longopts since 0.2.6
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifdown-post2
-rwxr-xr-xsysconfig/network-scripts/ifup-post2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post
index 68354dea..bcf47654 100755
--- a/sysconfig/network-scripts/ifdown-post
+++ b/sysconfig/network-scripts/ifdown-post
@@ -48,7 +48,7 @@ fi
# Inform firewall
if [ -x /usr/bin/firewall-cmd -a "${REALDEVICE}" != "lo" ]; then
- /usr/bin/firewall-cmd --remove --interface="${DEVICE}" > /dev/null 2>&1
+ /usr/bin/firewall-cmd --remove-interface="${DEVICE}" > /dev/null 2>&1
fi
# Notify programs that have requested notification
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 1ebb9c21..ca14acf7 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -95,7 +95,7 @@ fi
# Inform firewall which network zone (empty means default) this interface belongs to
if [ -x /usr/bin/firewall-cmd -a "${REALDEVICE}" != "lo" ]; then
- /usr/bin/firewall-cmd --zone="${ZONE}" --change --interface="${DEVICE}" > /dev/null 2>&1
+ /usr/bin/firewall-cmd --zone="${ZONE}" --change-interface="${DEVICE}" > /dev/null 2>&1
fi
# Notify programs that have requested notification