summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-09 12:36:31 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-09 12:36:31 +0000
commite648e1a45fcf3fee161152b1691c1c65710c6bed (patch)
treeadd7028285bcbfb1f8ef039cbc9d2cf2f9943502 /applications
parentceb49b0390f668da0dc94cbd0fd006d451104f8a (diff)
applications/luci-splash: cope with non-numeric (invalid) limit_up & limit_down values in luci-splash cli
Diffstat (limited to 'applications')
-rwxr-xr-xapplications/luci-splash/root/usr/sbin/luci-splash4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-splash/root/usr/sbin/luci-splash b/applications/luci-splash/root/usr/sbin/luci-splash
index 244adc9d88..99fdd1bf14 100755
--- a/applications/luci-splash/root/usr/sbin/luci-splash
+++ b/applications/luci-splash/root/usr/sbin/luci-splash
@@ -16,8 +16,8 @@ function main(argv)
local cmd = argv[1]
local arg = argv[2]
- limit_up = tonumber(uci:get("luci_splash", "general", "limit_up") or 0)
- limit_down = tonumber(uci:get("luci_splash", "general", "limit_down") or 0)
+ limit_up = tonumber(uci:get("luci_splash", "general", "limit_up")) or 0
+ limit_down = tonumber(uci:get("luci_splash", "general", "limit_down")) or 0
uci:foreach("luci_splash", "iface", function(s)
if s.network then