Moxa W321-LX [38/80] Attention

Moxa W341-LX [38/80] Attention
W321/341 Linux Managing Embedded Linux
3-12
ATTENTION
Remember to type the #sync command before you disconnect the USB mass storage device. If
you don’t issue the command, you may lose some data.
Remember to exit the /mnt/sd directory when you disconnect the SD memory card storage
device. If you stay in /mnt/sd, the auto un-mount process will fail. If that happens, type
#umount /mnt/sd to un-mount the SD card device manually.
ATTENTION
W321/341 only supports certain types of flash disk SD memory card storage device. Some the U
SD card storage may not be compatible with W321/341. Check compatibility issues before you
purchase a SD card storage device to connect to W321/341. /etc/mdev.conf is the mdev
configuration file.
mmcblk0p[1-9] 0:0 0660 *(/sbin/automount_sd.sh $MDEV)
It automatically run /sbin/automount_sd.sh to mount the external storage.
#!/bin/sh
DISKNAME=`echo $1|cut -c1-3`
MPATH=/var/$DISKNAME
MPATHLOG=/dev/shm/$1
echo $1 > /dev/shm/mountpath.log
if [ "$1" == "" ]; then
echo .automount.sh parameter is none.
exit 1
fi
if [ -e "$MPATH" ]; then
echo "$MPATH" > /dev/shm/umount.log
umount $MPATH
rm -rf $MPATH
else
echo $MPATH > /dev/shm/mount.log
if [ -b /dev/$1 ]; then
mkdir -p $MPATH
mount /dev/$1 $MPATH

Содержание

Похожие устройства

Скачать
Случайные обсуждения