1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 16:43:09 +02:00

[package] relayd: map "ipaddr" option to local ip (-L)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26773 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-04-27 19:16:35 +00:00
parent 98a395304f
commit caf4c049bf

View File

@ -48,6 +48,10 @@ setup_interface_relay() {
resolve_ifname "$ifn"
done
local ipaddr
config_get ipaddr "$cfg" ipaddr
[ -n "$ipaddr" ] && append args "-L $ipaddr"
local gateway
config_get gateway "$cfg" gateway
[ -n "$gateway" ] && append args "-G $gateway"