applications/luci-ffwizzard: prevent infinite shell loop when compiling LuCI SDK
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 16 Feb 2011 19:56:41 +0000 (19:56 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 16 Feb 2011 19:56:41 +0000 (19:56 +0000)
applications/luci-ffwizard/root/etc/uci-defaults/device-defaults

index 6a70e67..3ebf4c0 100755 (executable)
@@ -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"