PDA

View Full Version : automount cifs



joopajaa
12-09-2009, 08:12 PM
Hi

Can someone tell me why it wont work: I try to edit /MMP/usr/bin/start.sh to add automaticly my pc's folder to my data/movies - for example.

I have a working command for ssh:
mount.cifs //192.168.1.2/Jii /DATA/movie -o password=pass,username=user



I tried to add it at the end of the start.sh file as shown:

sleep 10
mount.cifs //192.168.1.2/Jii /DATA/movie -o password=pass,username=user

Is there some error?

spinmar
14-09-2009, 10:15 AM
I think that the right method is the following.
In the azbox there is a directory (/DISK2/etc/start.d) which contains scripts which are executed at the boot time.
In this directory the script has to start with the letter S and the number after it tells the prioriry the kernel has to execute it.
So you have to insert in /DISK2/etc/start.d a script S60mounts.sh:

#!/bin/sh
# Automatic mount
#
mount.cifs //192.168.1.2/Jii /DATA/movie -o -o user=user,pass=pass

xln747
14-09-2009, 02:09 PM
Hi, Note also that the name of the scripts must start with a captial "S" otherwise they won't run.