* udev failed to automount USB memory stick on mpc8313
@ 2010-04-07 22:33 Zhigang Wang
0 siblings, 0 replies; only message in thread
From: Zhigang Wang @ 2010-04-07 22:33 UTC (permalink / raw)
To: linuxppc-dev
I am using the latest LTIB BSP (2.6.23) for mpc8313 and want to use
udev to automatically mount and umount USB flash storage.
But it appears udev never executes the rule and the script file even
though it is called when a stick is attached. I can manually mount the
USB stick with no problem.
Here is the rule file and the script.
File: 10-local.rules
ACTION=="add", KERNEL=="sd[a-z][0-9]", SUBSYSTEM=="block",
RUN+="/root/usbmount.sh"
File: usbmount.sh
#!/bin/sh
if [ $ACTION == "add" ]
then
mount -t vfat /dev/sda1 /root/files
elif [ $ACTION == "remove" ]
then
umount -l /root/files
fi
Can someone tell me how to make it work?
Thanks.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-07 22:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-07 22:33 udev failed to automount USB memory stick on mpc8313 Zhigang Wang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.