allow dund to grab ppp options gathered from the network scripts
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12457 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
18dc1eb462
commit
8bb22283f4
@ -61,6 +61,12 @@ dund_config() {
|
|||||||
append_bool "$cfg" cache "--cache"
|
append_bool "$cfg" cache "--cache"
|
||||||
|
|
||||||
append_string "$cfg" pppdopts ""
|
append_string "$cfg" pppdopts ""
|
||||||
|
config_get ifn "$cfg" interface
|
||||||
|
if [ -n "$ifn" ]; then
|
||||||
|
config_get unit "$ifn" unit
|
||||||
|
[ -z "$unit" ] || append args "unit $unit ipparam $ifn linkname $ifn"
|
||||||
|
fi
|
||||||
|
|
||||||
config_get_bool enabled "$cfg" "enabled" '1'
|
config_get_bool enabled "$cfg" "enabled" '1'
|
||||||
[ "$enabled" -gt 0 ] && /usr/bin/dund $args
|
[ "$enabled" -gt 0 ] && /usr/bin/dund $args
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user