1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 02:34:06 +02:00

add protection against running cf2nand from yaffs2

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5301 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-10-26 02:15:22 +00:00
parent cea208a5bb
commit 93b646c8f5

View File

@ -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