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 6a70e67a2ee3ad016d1f1c0af5db7b27ae24d1da..3ebf4c0f0ed462e14bf5d71c2ca3096525ab145c 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"