add protection against running cf2nand from yaffs2
SVN-Revision: 5301
This commit is contained in:
parent
a1e82362ac
commit
dff0c52031
@ -16,6 +16,11 @@ copy_kernel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fstype="$(mount | grep ' / ' | awk '{print $5}')"
|
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 ] && {
|
[ -d /tmp/cf2nand ] && {
|
||||||
echo "/tmp/cf2nand already exists"
|
echo "/tmp/cf2nand already exists"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user