![]() |
Help with init script to mount CIFS
Following the steps here: http://maemo.org/community/wiki/howtoaccesswindowscifs/ I have been able to get CIFS working. What I want to do next is use an init script to automatically mount and umount the share on boot/shutdown.
This is what I have made in /etc/init.d/ Code:
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin By the way, I am trying to connect to a file share on my linksys NSLU2 - another really nifty linux device. What am I doing wrong? I know the path is often a thorn in the side of linux scripts, but I think I've declared just about everything! |
Re: Help with init script to mount CIFS
Perhaps the network is not connected at the boot time yet?
|
Re: Help with init script to mount CIFS
Quote:
In that case it's not an obstacle that can be easily surmounted. Unless there is a way to run the script after the network is up? On some linux distributions you can number init scripts like S10, S20, S30 etc. That doesn't seem to be the case for the N800. By the way, do you know how to set permissions so that the mounted folder is browsable in the File Manager by a non-root user? My /nslu2 was created as a regular user. But once I mount it as root (I need to be root to use mount), the owner and group becomes 501/501. Is it safe to try chown and chgroup to put it back to user/users? |
Re: Help with init script to mount CIFS
Quote:
Quote:
|
Re: Help with init script to mount CIFS
Quote:
|
All times are GMT. The time now is 17:05. |
vBulletin® Version 3.8.8