projects
/
openwrt
/
staging
/
rmilecki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1e8236
)
add protection against running cf2nand from yaffs2
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 26 Oct 2006 02:15:22 +0000
(
02:15
+0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 26 Oct 2006 02:15:22 +0000
(
02:15
+0000)
SVN-Revision: 5301
package/base-files/rb532-2.6/sbin/cf2nand
patch
|
blob
|
history
diff --git
a/package/base-files/rb532-2.6/sbin/cf2nand
b/package/base-files/rb532-2.6/sbin/cf2nand
index eb1a0bec100a62f9bcb2e8bcd838b6e3c3c1e8c7..f8576beaa4ec692f28286d4e4d322f8828ee3713 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