From 74c0af677fe37e66c157f641efdeb548f8d16664 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 1 Sep 2008 12:09:11 +0000 Subject: [PATCH] allow dund to grab ppp options gathered from the network scripts SVN-Revision: 12457 --- utils/bluez-utils/files/bluez-utils.init | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/bluez-utils/files/bluez-utils.init b/utils/bluez-utils/files/bluez-utils.init index 43780f5e8a..afd2294e7a 100644 --- a/utils/bluez-utils/files/bluez-utils.init +++ b/utils/bluez-utils/files/bluez-utils.init @@ -61,6 +61,12 @@ dund_config() { append_bool "$cfg" cache "--cache" 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' [ "$enabled" -gt 0 ] && /usr/bin/dund $args } -- 2.30.2