aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/ifdown-ipv6
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2019-09-12 12:32:36 +0200
committerGitHub <noreply@github.com>2019-09-12 12:32:36 +0200
commit66d26269a83229b7340f7ace06dfc715c04df7d8 (patch)
treed25afcbba9d13d50f62fe8177ab4863c0c220c47 /network-scripts/ifdown-ipv6
parentdd703a8494647d401dbffa0f036233e08044ec60 (diff)
downloadinitscripts-66d26269a83229b7340f7ace06dfc715c04df7d8.tar
initscripts-66d26269a83229b7340f7ace06dfc715c04df7d8.tar.gz
initscripts-66d26269a83229b7340f7ace06dfc715c04df7d8.tar.bz2
initscripts-66d26269a83229b7340f7ace06dfc715c04df7d8.tar.xz
initscripts-66d26269a83229b7340f7ace06dfc715c04df7d8.zip
Repalace hardcoded tests for yes and no with testing functions
Resolve issue: #42
Diffstat (limited to 'network-scripts/ifdown-ipv6')
-rwxr-xr-xnetwork-scripts/ifdown-ipv64
1 files changed, 2 insertions, 2 deletions
diff --git a/network-scripts/ifdown-ipv6 b/network-scripts/ifdown-ipv6
index 7ba3efdc..5bc08d31 100755
--- a/network-scripts/ifdown-ipv6
+++ b/network-scripts/ifdown-ipv6
@@ -62,7 +62,7 @@ if [ $? != 0 -a $? != 11 ]; then
exit 1
fi
-if [ ! "$IPV6_SET_SYSCTLS" = "no" ]; then
+if ! is_false "$IPV6_SET_SYSCTLS"; then
# Switch some sysctls to secure mode
/sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.forwarding=0 >/dev/null 2>&1
/sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.accept_ra=0 >/dev/null 2>&1
@@ -119,7 +119,7 @@ if [ $? = 0 -o $? = 11 ]; then
fi
# Shutdown of 6to4, if configured
-if [ "$valid6to4config" = "yes" ]; then
+if is_true "$valid6to4config"; then
if [ -n "$IPV6TO4_ROUTING" ]; then
# Delete routes to local networks
for devsuf in $IPV6TO4_ROUTING; do