summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpackage/base-files/default/lib/network/config.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/default/lib/network/config.sh b/package/base-files/default/lib/network/config.sh
index 76db09de15..163e42e800 100755
--- a/package/base-files/default/lib/network/config.sh
+++ b/package/base-files/default/lib/network/config.sh
@@ -13,7 +13,8 @@ find_config() {
config_get iface "$ifn" ifnames
;;
esac
- for ifc in $iface; do
+ config_get device "$ifn" device
+ for ifc in ${device:-iface}; do
[ "$ifc" = "$1" ] && {
echo "$ifn"
return 0