-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.
> diff --git a/package/dnsmasq/files/dnsmasq.init
> b/package/dnsmasq/files/dnsmasq.init
> index e2f35e8..156d5d5 100644
> --- a/package/dnsmasq/files/dnsmasq.init
> +++ b/package/dnsmasq/files/dnsmasq.init
> @@ -42,11 +42,13 @@ append_server() {
> }
>
> append_interface() {
> - append args "-i $1"
> + local _uciname=`uci get -q -P /var/state network.$1.ifname`
Use the uci_get_state() wrapper from /etc/functions.sh
> + append args "-i ${_uciname:-$1}"
> }
>
> append_notinterface() {
> - append args "-I $1"
> + local _uciname=`uci get -q -P /var/state network.$1.ifname`
Same here.
> + append args "-I ${_uciname:-$1}"
> }
>
> append_addnhosts() {
~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxEZVsACgkQdputYINPTPO8MQCeMivVcUImCPH4zTOYAJXiv4W/
yCwAmwa2tcnxBMjUaFGDm69JhtAC3rST
=D0sM
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel