X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/ae6571a883177875963f4b1992dc6fc8b8c3029a..934e35c9dc1f189fe6714edd7d3f05d6918e07ba:/target/default/target_skeleton/bin/firstboot?ds=sidebyside diff --git a/target/default/target_skeleton/bin/firstboot b/target/default/target_skeleton/bin/firstboot index 2e7481db8..cef258cf3 100755 --- a/target/default/target_skeleton/bin/firstboot +++ b/target/default/target_skeleton/bin/firstboot @@ -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"