projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add protection against running cf2nand from yaffs2
[openwrt.git]
/
package
/
base-files
/
rb532-2.6
/
sbin
/
cf2nand
diff --git
a/package/base-files/rb532-2.6/sbin/cf2nand
b/package/base-files/rb532-2.6/sbin/cf2nand
index
eb1a0be
..
f8576be
100755
(executable)
--- a/
package/base-files/rb532-2.6/sbin/cf2nand
+++ b/
package/base-files/rb532-2.6/sbin/cf2nand
@@
-16,6
+16,11
@@
copy_kernel() {
}
fstype="$(mount | grep ' / ' | awk '{print $5}')"
+case "$fstype" in
+ ext2|jffs2) echo "Copying from $fstype to yaffs2";;
+ *) echo "Invalid filesystem."; exit 1;;
+esac
+
[ -d /tmp/cf2nand ] && {
echo "/tmp/cf2nand already exists"
exit 1
This page took
0.030624 seconds
and
4
git commands to generate.