1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2008 OpenWrt.org
6 local cfg
="$CONFIG_SECTION"
7 config_get configname
"$cfg" TYPE
11 config_get ipaddr
"$cfg" ipaddr
12 config_get supernode
"$cfg" supernode
13 config_get port
"$cfg" port
14 config_get community
"$cfg" community
15 config_get key
"$cfg" key
16 config_get_bool route
"$cfg" route
0
17 [ "$route" = "1" ] && args
='-r'
18 if [ "$ipaddr" != "" ]; then
19 edge
-f $args -a $ipaddr -c $community -k $key -l ${supernode}:${port}
23 config_get port
"$cfg" port
24 if [ "$port" != "" ]; then