From e648e1a45fcf3fee161152b1691c1c65710c6bed Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 9 Jun 2009 12:36:31 +0000 Subject: [PATCH] applications/luci-splash: cope with non-numeric (invalid) limit_up & limit_down values in luci-splash cli --- applications/luci-splash/root/usr/sbin/luci-splash | 4 ++-- 1 file 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 -- 2.30.2