fix ppp related bug in the network scripts

SVN-Revision: 4437
This commit is contained in:
Felix Fietkau 2006-08-04 09:50:11 +00:00
parent 20922bcde7
commit 8cad57f8c2

View file

@ -13,7 +13,8 @@ find_config() {
config_get iface "$ifn" ifnames config_get iface "$ifn" ifnames
;; ;;
esac esac
for ifc in $iface; do config_get device "$ifn" device
for ifc in ${device:-iface}; do
[ "$ifc" = "$1" ] && { [ "$ifc" = "$1" ] && {
echo "$ifn" echo "$ifn"
return 0 return 0