aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2017-11-08 17:25:24 +0100
committerDee'Kej <deekej@linuxmail.org>2017-11-09 14:58:51 +0100
commitcfa035c7c3aeacea60d4e12bebde7ce8e1ecc54b (patch)
tree1711a88f025e8595924d2bb89f0a3ab33ab6dd23
parent803b658e5c921dcebd10ff8bbefb1d969a6aa2b6 (diff)
downloadinitscripts-cfa035c7c3aeacea60d4e12bebde7ce8e1ecc54b.tar
initscripts-cfa035c7c3aeacea60d4e12bebde7ce8e1ecc54b.tar.gz
initscripts-cfa035c7c3aeacea60d4e12bebde7ce8e1ecc54b.tar.bz2
initscripts-cfa035c7c3aeacea60d4e12bebde7ce8e1ecc54b.tar.xz
initscripts-cfa035c7c3aeacea60d4e12bebde7ce8e1ecc54b.zip
network-functions: use POSIX forwarding instead of bash-ism
-rwxr-xr-xsysconfig/network-scripts/ifdown-post2
-rwxr-xr-xsysconfig/network-scripts/ifup-eth2
-rwxr-xr-xsysconfig/network-scripts/ifup-post2
3 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post
index 229c9877..afafc0d5 100755
--- a/sysconfig/network-scripts/ifdown-post
+++ b/sysconfig/network-scripts/ifdown-post
@@ -59,7 +59,7 @@ if [ "${REALDEVICE}" != "lo" ]; then
/org/fedoraproject/FirewallD1 \
org.fedoraproject.FirewallD1.zone.removeInterface \
string: "" string:"${DEVICE}" \
- &> /dev/null
+ > /dev/null 2>&1
fi
# Notify programs that have requested notification
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 47d15ec1..bee5c4f0 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -345,7 +345,7 @@ if is_true "${DHCPV6C}" && [ -x /sbin/dhclient ]; then
/org/fedoraproject/FirewallD1 \
org.fedoraproject.FirewallD1.zone.changeZoneOfInterface \
string:"${ZONE}" string:"${DEVICE}" \
- &> /dev/null
+ > /dev/null 2>&1
fi
generate_config_file_name 6
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index c7f7a8aa..c9d91700 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -138,7 +138,7 @@ if [ "${REALDEVICE}" != "lo" ]; then
/org/fedoraproject/FirewallD1 \
org.fedoraproject.FirewallD1.zone.changeZoneOfInterface \
string:"${ZONE}" string:"${DEVICE}" \
- &> /dev/null
+ > /dev/null 2>&1
fi
# Notify programs that have requested notification