+if [ $COPYORLINK = l ]; then
+ CPY="ln -s"
+elif [ $COPYORLINK = c ]; then
+ CPY="cp"
+else
+ echo "unknown copy or link type"
+ usage;
+fi
+
+if [ $MULTIORSINGLE = m ]; then
+ VFS_CODE="yaffs_vfs_multi.c"
+ MTD1_CODE="yaffs_mtdif1_multi.c"
+ MTD2_CODE="yaffs_mtdif2_multi.c"
+ YPORTENV="yportenv_multi.h"
+elif [ $MULTIORSINGLE = s ]; then
+ VFS_CODE="yaffs_vfs_single.c"
+ MTD1_CODE="yaffs_mtdif1_single.c"
+ MTD2_CODE="yaffs_mtdif2_single.c"
+ YPORTENV="yportenv_single.h"
+
+ echo ""
+ echo "*** Warning ***"
+ echo "You have chosen to use the single kernel variant of the yaffs VFS glue code"
+ echo "that only works with the latest Linux kernel tree. If you are using an older"
+ echo "version of Linux then you probably wanted to use the multi-version variant by"
+ echo "re-running the patch-ker.sh script using m as a the second argument."
+ echo " ie $0 $COPYORLINK m $LINUXDIR"
+ echo ""
+else
+ echo "unknown multi/single version selection"
+ usage;
+fi
+
+