diff options
author | Florian La Roche <laroche@redhat.com> | 2002-06-26 10:49:31 +0000 |
---|---|---|
committer | Florian La Roche <laroche@redhat.com> | 2002-06-26 10:49:31 +0000 |
commit | ffe40c20ad49f24c5546ddd0af9629233c2a0651 (patch) | |
tree | ce4f8f7558c1e622fed4673427968342b38050bd /sysconfig/network-scripts/ifup-sit | |
parent | e4088390f4a3d8f3d3a59befb8b571b07826f523 (diff) | |
download | initscripts-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/ifup-sit')
-rwxr-xr-x | sysconfig/network-scripts/ifup-sit | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sysconfig/network-scripts/ifup-sit b/sysconfig/network-scripts/ifup-sit index 0ad99784..b26432c2 100755 --- a/sysconfig/network-scripts/ifup-sit +++ b/sysconfig/network-scripts/ifup-sit @@ -46,11 +46,7 @@ REALDEVICE=`echo ${DEVICE} | sed 's/:.*//g'` # 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 @@ -80,17 +76,17 @@ fi ipv6_add_tunnel_device $DEVICE $IPV6TUNNELIPV4 "" $IPV6TUNNELIPV4LOCAL || exit 1 # Set IPv6 MTU, if given -if [ ! -z "$IPV6_MTU" ]; then +if [ -n "$IPV6_MTU" ]; then ipv6_set_mtu $DEVICE $IPV6_MTU fi # Apply local IPv6 address, if given (numbered tunnel) -if [ ! -z "$IPV6ADDR" ]; then +if [ -n "$IPV6ADDR" ]; then ipv6_add_addr_on_device $DEVICE $IPV6ADDR fi # Setup default IPv6 route, check are done by function -if [ ! -z "$IPV6_DEFAULTDEV" -o ! -z "$IPV6_DEFAULTGW" ]; then +if [ -n "$IPV6_DEFAULTDEV" -o -n "$IPV6_DEFAULTGW" ]; then ipv6_set_default_route "$IPV6_DEFAULTGW" "$IPV6_DEFAULTDEV" "$DEVICE" fi |