c6f4b884fc
1. option 'health_monitor' 'serial' starts only one background process to monitor the health of any number of wan's, saving system resources (WHR-HP-G54 with only 16 MB memory is a happy wimp :) 2. option 'icmp_count' '3' can be useful to reduce false positives 3. a sample 'mwanfw' for VoIP traffic 4. "/etc/init.d/multiwan single" restores to the initial state of single wan. The "stop" command didn't quite do that, and it's now only good for process shutdown 5. numerous minor code cleanups git-svn-id: svn://svn.openwrt.org/openwrt/packages@23388 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
235 B
Bash
Executable File
21 lines
235 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
START=99
|
|
EXTRA_COMMANDS="single"
|
|
|
|
start () {
|
|
/usr/bin/multiwan agent &
|
|
}
|
|
|
|
stop () {
|
|
sh /usr/bin/multiwan stop
|
|
}
|
|
|
|
restart () {
|
|
/usr/bin/multiwan restart &
|
|
}
|
|
|
|
single () {
|
|
/usr/bin/multiwan single &
|
|
}
|
|
|