diff options
author | Bill Nottingham <notting@redhat.com> | 2001-03-06 17:10:12 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-03-06 17:10:12 +0000 |
commit | e6fc09a9fb800687da8c951fb38cd8475f057209 (patch) | |
tree | 8ae96e9610b2aca9d323d5fcca6cab444702d946 /sysconfig/network-scripts | |
parent | da475d98c5f2bcc5febc6d5aecefde867f0aba5d (diff) | |
download | initscripts-e6fc09a9fb800687da8c951fb38cd8475f057209.tar initscripts-e6fc09a9fb800687da8c951fb38cd8475f057209.tar.gz initscripts-e6fc09a9fb800687da8c951fb38cd8475f057209.tar.bz2 initscripts-e6fc09a9fb800687da8c951fb38cd8475f057209.tar.xz initscripts-e6fc09a9fb800687da8c951fb38cd8475f057209.zip |
clean up testing gateway slightly
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 0f47e2ff..ca24b3e7 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -164,9 +164,9 @@ else . /etc/sysconfig/network - if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then + if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then # set up default gateway - if [ "${GATEWAY}" != "" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`" = "NETWORK=${NETWORK}" ]; then + if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`" = "NETWORK=${NETWORK}" ]; then route add default gw ${GATEWAY} ${DEVICE} DEFGW=${GATEWAY} elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then |