summaryrefslogtreecommitdiffstats
path: root/target/default/target_skeleton/bin
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-23 21:44:17 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-23 21:44:17 +0000
commit9039a0cd663896b5fd189317f2b633ac0cf67a31 (patch)
tree098be95d49bc3078f6d540a8d92527883ba4c5f6 /target/default/target_skeleton/bin
parent33bdd51a66a290356faff3be0a7e5ca36634130e (diff)
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
Diffstat (limited to 'target/default/target_skeleton/bin')
-rwxr-xr-xtarget/default/target_skeleton/bin/firstboot5
1 files changed, 5 insertions, 0 deletions
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"