Hi thetruelighthouse,
thanks for your scripts.
This is exactly what I was looking for.
Unfortunately, they do not work as I would expect.
The output of "mount" of my WL500gx is:
rootfs on / type rootfs (rw)
/dev/root on /mnt/rom type squashfs (ro)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /tmp type tmpfs (rw,nosuid,nodev)
none on /dev/pts type devpts (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
mini_fo:/jffs on /mnt type mini_fo (rw)
/dev/scsi/host0/bus0/target0/lun0/part2 on / type ext3 (rw,noatime)
none on /proc/bus/usb type usbfs (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /usb type vfat (rw)
However if I insert a usb stick, it recognizes it, but does not mount it automatically.
Output of "fdisk -l":
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 1043 MB, 1043333120 bytes
255 heads, 63 sectors/track, 126 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 96 771088+ b W95 FAT32
/dev/scsi/host0/bus0/target0/lun0/part2 97 126 240975 83 Linux
Disk /dev/scsi/host1/bus0/target0/lun0/disc: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host1/bus0/target0/lun0/part1 * 1 2431 19526976 c W95 FAT32 (LBA)
The output put "mount" is still identical. I would expect to find a new entry in the output of "mount". Also it appears the script "/sbin/usb-storage" creates a new subdirectory in /mnt, but I can't find anything new in there either.
Which file access permissions are required for "/sbin/usb-storage" and "/etc/hotplug.d/usb/10-usb-storage"?
Do I need to register / enable it like a service in "/etc/init.d" somewhere?
What might have gone wrong? Any help is greatly appreciated.
Thanks in advance,
slowjoe