# @name # NAND modular negative test # @desc # modprobe nand module first and then do mount and rmmod # @requires nand NAND_L_MODULAR_NEG_RMMOD_WHEN_MOUNT source "common.sh"; do_cmd insmod.sh "nand"; DEV_NODE=`get_blk_device_node.sh "nand"` || die "error getting devnode for nand: $DEV_NODE"; do_cmd blk_device_do_mount.sh -n "$DEV_NODE" -f "jffs2" -d "nand" -m "/mnt/nand"; rmmod.sh "nand" && exit 1 || exit 0