
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14206 3c298f89-4303-0410-b956-a3cf2f4a3e73
19 lines
326 B
Bash
19 lines
326 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
START=70
|
|
|
|
start() {
|
|
config_load "6stund"
|
|
|
|
config_get PRIMIP primaryip
|
|
config_get SECIP secondaryip
|
|
config_get PRIMPORT primaryport
|
|
config_get SECPORT secondaryport
|
|
|
|
/usr/sbin/stund -b -h $PRIMIP -a $SECIP -p $PRIMPORT -o $SECPORT
|
|
}
|
|
|
|
stop() {
|
|
killall -9 stund
|
|
}
|