X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Fdefault%2Ftarget_skeleton%2Fbin%2Ffirstboot;h=cef258cf3980fcbe48bb70170ef9888020d43995;hb=9039a0cd663896b5fd189317f2b633ac0cf67a31;hp=2e7481db8105ea306f07d704d85b61628278689b;hpb=ae6571a883177875963f4b1992dc6fc8b8c3029a;p=openwrt-10.03%2F.git 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"