diff options
author | Bill Nottingham <notting@redhat.com> | 2003-06-27 20:37:32 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-06-27 20:37:32 +0000 |
commit | be897f4ad5d4f9dc88ec39acf399656ba5c96d9f (patch) | |
tree | b043d8230d918a364edb5f07ffb35f702a654893 /sysconfig/network-scripts/ifdown-post | |
parent | c49ae566f4f7c58a79b32a8fc17005c0f9495402 (diff) | |
download | initscripts-be897f4ad5d4f9dc88ec39acf399656ba5c96d9f.tar initscripts-be897f4ad5d4f9dc88ec39acf399656ba5c96d9f.tar.gz initscripts-be897f4ad5d4f9dc88ec39acf399656ba5c96d9f.tar.bz2 initscripts-be897f4ad5d4f9dc88ec39acf399656ba5c96d9f.tar.xz initscripts-be897f4ad5d4f9dc88ec39acf399656ba5c96d9f.zip |
allow default window size for routes to be set with WINDOW=... (#98112)
Diffstat (limited to 'sysconfig/network-scripts/ifdown-post')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-post | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown-post b/sysconfig/network-scripts/ifdown-post index b78399ee..6c244ca1 100755 --- a/sysconfig/network-scripts/ifdown-post +++ b/sysconfig/network-scripts/ifdown-post @@ -23,9 +23,9 @@ if ! check_default_route ; then # ISDN device needs special handling dial on demand if [ "${DEVICETYPE}" = "ippp" -o "${DEVICETYPE}" = "isdn" ] && [ "$DIALMODE" = "auto" ] ; then if [ -z "$GATEWAY" ] ; then - /sbin/ip route add default dev ${DEVICE} + /sbin/ip route add default ${WINDOW:+window $WINDOW} dev ${DEVICE} else - /sbin/ip route add default via ${GATEWAY} + /sbin/ip route add default ${WINDOW:+window $WINDOW} via ${GATEWAY} fi else add_default_route ${DEVICE} |