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)
commit76518dc7c10860b3251c03354e27f09ad0be65f0
treeee9ab8c7f5a58b757bba950feacf084c2d7e401d
parent1131bca300e03555c2c43343e1f5c8ba7ccf8387
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