summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-10-18 19:11:02 +0000
committerBill Nottingham <notting@redhat.com>2004-10-18 19:11:02 +0000
commit489fbbe41fa7ae66da3e42d74268295a5b6a259f (patch)
tree5549b72cf5a3caccaec29b0cc15f59dc57850341
parenta8da6aebbbef63b3a5c3196fcbb7c46a3665482c (diff)
downloadinitscripts-489fbbe41fa7ae66da3e42d74268295a5b6a259f.tar.gz
initscripts-489fbbe41fa7ae66da3e42d74268295a5b6a259f.tar.xz
initscripts-489fbbe41fa7ae66da3e42d74268295a5b6a259f.zip
fix typo
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index b15445ba..4213fcd8 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -268,7 +268,7 @@ else
if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then
# set up default gateway
if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK} 2>/dev/null`" = "NETWORK=${NETWORK}" ]; then
- ip route add default via ${GATEWAY} ${SRC} ${GATEWAYDEV:dev $GATEWAYDEV}
+ ip route add default via ${GATEWAY} ${SRC} ${GATEWAYDEV:+dev $GATEWAYDEV}
DEFGW=${GATEWAY}
elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then
ip route add default ${SRC} dev ${REALDEVICE}