aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-03-16 09:59:56 -0400
committerBill Nottingham <notting@redhat.com>2012-03-16 09:59:56 -0400
commit29a948d09bb453b9dab923f741f1672912e0eaac (patch)
treead55b508825b082375758a15b360db0cb9110592 /sysconfig
parent8cdf582196e58f3dd7e78f68ac13b6e1f7c18bde (diff)
downloadinitscripts-29a948d09bb453b9dab923f741f1672912e0eaac.tar
initscripts-29a948d09bb453b9dab923f741f1672912e0eaac.tar.gz
initscripts-29a948d09bb453b9dab923f741f1672912e0eaac.tar.bz2
initscripts-29a948d09bb453b9dab923f741f1672912e0eaac.tar.xz
initscripts-29a948d09bb453b9dab923f741f1672912e0eaac.zip
Add quotes to device/zone in the firewalld support.
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifdown-post2
-rwxr-xr-xsysconfig/network-scripts/ifup-post4
2 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post
index d37b59da..68354dea 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 fec96c88..1ebb9c21 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -1,4 +1,4 @@
-#!/bin/sh
+
cd /etc/sysconfig/network-scripts
. ./network-functions
@@ -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