From 9039a0cd663896b5fd189317f2b633ac0cf67a31 Mon Sep 17 00:00:00 2001 From: mbm Date: Mon, 23 May 2005 21:44:17 +0000 Subject: hide some non-critical error messages; prevent newbie bug reports git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1028 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/default/target_skeleton/bin/firstboot | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target/default/target_skeleton/bin') diff --git a/target/default/target_skeleton/bin/firstboot b/target/default/target_skeleton/bin/firstboot index 2e7481db81..cef258cf39 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" -- cgit v1.2.3