summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard/root/etc/uci-defaults
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-02-16 19:56:41 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-02-16 19:56:41 +0000
commit521099ad9896f41dfab51484c01942264c26b6bb (patch)
tree5447108c0dbddb011703e48949fcc47d7346a2e9 /applications/luci-ffwizard/root/etc/uci-defaults
parent08f46b2a11d95146dabab31ad6e5e9a30d3bf977 (diff)
applications/luci-ffwizzard: prevent infinite shell loop when compiling LuCI SDK
Diffstat (limited to 'applications/luci-ffwizard/root/etc/uci-defaults')
-rwxr-xr-xapplications/luci-ffwizard/root/etc/uci-defaults/device-defaults3
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-ffwizard/root/etc/uci-defaults/device-defaults b/applications/luci-ffwizard/root/etc/uci-defaults/device-defaults
index 6a70e67a2e..3ebf4c0f0e 100755
--- a/applications/luci-ffwizard/root/etc/uci-defaults/device-defaults
+++ b/applications/luci-ffwizard/root/etc/uci-defaults/device-defaults
@@ -1,5 +1,8 @@
#!/bin/sh
+# prevent running on sdk
+type config_get >/dev/null 2>/dev/null || exit 0
+
set_default_config()
{
local cfg="$1"