View Single Post
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#26
Originally Posted by jakfish View Post
How might I set up the script? Something like this:

insmod /lib/modules/2.6.21-omap1/extra/cifs.ko
mount -t cifs //10.0.0.2/Documents /media/mmc2/mnt -o noperm,sec=none,uid=user,guest
mount -t cifs //10.0.0.3/Documents /media/mmc2/mnt -o noperm,sec=none,uid=user,guest
etc up to ... cifs //10.0.0.12
Yup, and put #!/bin/sh on the first line of the file. Then "chmod 700" it. Make a second file with umount and rmmod commands. You only need one umount since it doesn't need the IP.

Put "&& exit" on the end of each mount command line. This makes the script exit when the mount works.
 

The Following User Says Thank You to auouymous For This Useful Post: