Re: [OpenWrt-Devel] [PATCH] base-files: set default value for config_get via 4th parameter plus some more (#5636)

2009-08-07 Thread Malte S. Stretz
On Friday 07 August 2009 14:59:37 I wrote: > On Friday 07 August 2009 04:12:00 Jo-Philipp Wich wrote: > > Applied in r17155-r17160. > > Yay, I didn't expect this one to be applied that quick :) > > I added a 7th patch to the ticket [7] which updates the tex docs > accordingly. I attached another d

Re: [OpenWrt-Devel] [PATCH] base-files: set default value for config_get via 4th parameter plus some more (#5636)

2009-08-07 Thread Malte S. Stretz
On Friday 07 August 2009 04:12:00 Jo-Philipp Wich wrote: > Applied in r17155-r17160. Yay, I didn't expect this one to be applied that quick :) I added a 7th patch to the ticket [7] which updates the tex docs accordingly. Cheers, Malte [7]https://dev.openwrt.org/attachment/ticket/5636/0007-docs-

Re: [OpenWrt-Devel] [PATCH] base-files: set default value for config_get via 4th parameter plus some more (#5636)

2009-08-06 Thread Jo-Philipp Wich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Applied in r17155-r17160. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkp7jWsACgkQdputYINPTPMRGgCbBqXwvqdDrdhVkdys9/WSc4fw xHAAoIbUOkESdZrGa7YWkhKokaFuvD3P

[OpenWrt-Devel] [PATCH] base-files: set default value for config_get via 4th parameter plus some more (#5636)

2009-08-06 Thread Malte S. Stretz
The command config_get_bool allows a fourth parameter which defines a default value. At many places it would be very useful if the plain three-parameter version of config get supported such a parameter as well, that saves a bunch of [ -z "$foo" ] checks in my scripts. In bug 5636 [0] you can f