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)
commitb1c39b2c14583b449ba062a6e931a5bf7e67d178
treeee9ab8c7f5a58b757bba950feacf084c2d7e401d
parent8389e38c46d917b5ba27697e1df2321db31f76e3
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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34722 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/Makefile
package/base-files/files/lib/functions/network.sh