#19116: "/lib/functions/network.sh; network_get_device" returns empty
-----------------------+-----------------------------------
  Reporter:  n0nb@…    |      Owner:  developers
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:
 Component:  packages  |    Version:  Barrier Breaker 14.07
Resolution:            |   Keywords:
-----------------------+-----------------------------------

Comment (by Nilfred):

 Worksforme
 {{{
 . /lib/functions/network.sh; if network_get_device if_wan wan; then echo
 $if_wan; fi
 pppoe-wan
 }}}
 Try this:
 {{{
 . /lib/functions/network.sh; if network_is_up wan; then echo WAN is up;
 else echo WAN is down; fi
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19116#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to