summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2006-07-16 15:10:04 +0200
committerWilly Tarreau <willy@wtap.(none)>2006-07-26 12:03:50 +0200
commit4deacecd6a0e7f28f2d3a03935a406fd80553e73 (patch)
treed1df07c18568c6445b04ecfe931946085255e797
parent[RELEASE] init-scripts-0.3.32 (diff)
downloadinit-scripts-4deacecd6a0e7f28f2d3a03935a406fd80553e73.tar.gz
[RELEASE] init-scripts-0.3.33v0.3.33
-rw-r--r--ChangeLog3
-rwxr-xr-xsbin/init.d/network8
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 824d87c..3a9a7cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2004/05/31 : 0.3.33
+- fixed 2 typos introduced in 'network' script in 0.3.32
+- changed keyword '-' to 'connected' to specify local routes in 'network'
2004/05/30 : 0.3.32
- added a commented out line with "/sbin/wdd" in 'startup.rc'
- added full path to /sbin/rmmod in 'functions' (needed by cron)
diff --git a/sbin/init.d/network b/sbin/init.d/network
index 883a9f0..b982877 100755
--- a/sbin/init.d/network
+++ b/sbin/init.d/network
@@ -182,10 +182,10 @@ function do_start {
local dest gw
dest=${route_list[$arg]%%[ ]*}
gw=${route_list[$arg]#*[ ]} # gw and potentially other ip args
- if [ -n "${gw##-*}" }; then
+ if [ -n "${gw##connected*}" ]; then
ip route add $dest via $gw
else
- ip route add $dest ${gw#*[- ]} # gw is "-"
+ ip route add $dest ${gw#connected}
fi
arg=$[$arg+1]
done
@@ -338,10 +338,10 @@ function do_start {
local dest gw
dest=${route_list[$arg]%%[ ]*}
gw=${route_list[$arg]#*[ ]} # gw and potentially other ip args
- if [ -n "${gw##-*}" }; then
+ if [ -n "${gw##connected*}" ]; then
ip route add $dest dev $instname via $gw
else
- ip route add $dest dev $instname ${gw#*[- ]} # gw is "-"
+ ip route add $dest dev $instname ${gw#connected}
fi
arg=$[$arg+1]
done