hide some non-critical error messages; prevent newbie bug reports
[openwrt-10.03/.git] / target / default / target_skeleton / bin / firstboot
index 2e7481db8105ea306f07d704d85b61628278689b..cef258cf3980fcbe48bb70170ef9888020d43995 100755 (executable)
@@ -1,6 +1,11 @@
 #!/bin/sh
 # $Id$
 
+mount | grep squashfs >&- || {
+       echo "You do not have a squashfs partition; aborting"
+       echo "(firstboot cannot be run on jffs2 based firmwares)"
+       return
+}
 
 [ -f "/tmp/.firstboot" ] && {
        echo "firstboot is already running"