base-files: various enhancements to network.sh
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 16 Dec 2012 18:22:02 +0000 (18:22 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 16 Dec 2012 18:22:02 +0000 (18:22 +0000)
commit1600ba99e464b32048cc83e4d31c72b3fb78663e
tree68bd3413ed9033f935f10d70935950dd94d5d9f6
parent595b48be552b0a325be977a85c75b40bb9a907dc
base-files: various enhancements to network.sh

- support reading inactive gateways and DNS information in
  network_get_gateway(), network_get_dnsserver() and network_get_dnssearch()
  by passing "true" as optional last argument
- internally cache fetched values to speed up subsequent accesses to the same
  data, introduce network_flush_cache() to clear them
- add some inline function documentation

SVN-Revision: 34722
package/base-files/Makefile
package/base-files/files/lib/functions/network.sh