projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hide some non-critical error messages; prevent newbie bug reports
[openwrt-10.03/.git]
/
target
/
default
/
target_skeleton
/
bin
/
firstboot
diff --git
a/target/default/target_skeleton/bin/firstboot
b/target/default/target_skeleton/bin/firstboot
index 2e7481db8105ea306f07d704d85b61628278689b..cef258cf3980fcbe48bb70170ef9888020d43995 100755
(executable)
--- 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"