aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/init.ipv6-global
diff options
context:
space:
mode:
authorFlorian La Roche <laroche@redhat.com>2002-06-26 10:49:31 +0000
committerFlorian La Roche <laroche@redhat.com>2002-06-26 10:49:31 +0000
commitffe40c20ad49f24c5546ddd0af9629233c2a0651 (patch)
treece4f8f7558c1e622fed4673427968342b38050bd /sysconfig/network-scripts/init.ipv6-global
parente4088390f4a3d8f3d3a59befb8b571b07826f523 (diff)
downloadinitscripts-ffe40c20ad49f24c5546ddd0af9629233c2a0651.tar
initscripts-ffe40c20ad49f24c5546ddd0af9629233c2a0651.tar.gz
initscripts-ffe40c20ad49f24c5546ddd0af9629233c2a0651.tar.bz2
initscripts-ffe40c20ad49f24c5546ddd0af9629233c2a0651.tar.xz
initscripts-ffe40c20ad49f24c5546ddd0af9629233c2a0651.zip
- change some negation usage
Diffstat (limited to 'sysconfig/network-scripts/init.ipv6-global')
-rwxr-xr-xsysconfig/network-scripts/init.ipv6-global11
1 files changed, 3 insertions, 8 deletions
diff --git a/sysconfig/network-scripts/init.ipv6-global b/sysconfig/network-scripts/init.ipv6-global
index fa380391..262bc2f7 100755
--- a/sysconfig/network-scripts/init.ipv6-global
+++ b/sysconfig/network-scripts/init.ipv6-global
@@ -45,14 +45,9 @@ POSITION="$2"
# Test whether IPv6 should be configured, else stop
[ "${NETWORKING_IPV6}" = "yes" ] || exit 0
-if [ ! -f /etc/sysconfig/network-scripts/network-functions-ipv6 ]; then
- exit 1
-fi
-
-# Source IPv6 helper functions
+[ -f /etc/sysconfig/network-scripts/network-functions-ipv6 ] || exit 1
. /etc/sysconfig/network-scripts/network-functions-ipv6
-
# Initialize IPv6, depending on caller option
case $ACTION in
start)
@@ -115,9 +110,9 @@ case $ACTION in
# Set default route for autotunnel, if specified
if [ "$IPV6_DEFAULTDEV" = "sit0" -a "$IPV6_AUTOTUNNEL" = "yes" ]; then
- if [ ! -z "$IPV6_DEFAULTGW" ]; then
+ if [ -n "$IPV6_DEFAULTGW" ]; then
ipv6_set_default_route $IPV6_DEFAULTGW $IPV6_DEFAULTDEV sit0
- elif [ ! -z "$IPV6_DEFAULTDEV" ]; then
+ elif [ -n "$IPV6_DEFAULTDEV" ]; then
ipv6_set_default_route "" $IPV6_DEFAULTDEV sit0
fi
fi