Ok.Done...
MOUNTPOINT="/media/$MDEV" mkdir -p "${MOUNTPOINT}" fi + FLAG="" + ROTATIONAL=`cat /sys/block/$DEVBASE/queue/rotational` + # Use 'noatime' option for SSD + if [ "${ROTATIONAL}" -eq "0" -a "{$DEVBASE}" != "mmcblk0" ] ; then + FLAG="-o noatime" + fi - if ! mount -t auto /dev/$MDEV "${MOUNTPOINT}" ; then + if ! mount -t auto $FLAG /dev/$MDEV "${MOUNTPOINT}" ; then rmdir "${MOUNTPOINT}" fi fi ;;
/etc/mdev/mdev-mount.sh