Welcome, Guest. Please login or register.

Author Topic: Mounting A Samba Share on/just after boot  (Read 2029 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: Mounting A Samba Share on/just after boot
« on: January 18, 2006, 09:50:04 PM »

Startup-Sequence is taboo, don't touch it ! The correct place for customisations is User-Startup.

However, mounting a share is better synchronised with the TCP/IP stack because trying to mount it before TCP/IP is online will fail. Depending on the stack you use there are different places to add scripts to events. Check your TCP/IP prefs.

According to my experience, you better delay the mounting of shares a little bit after going online. So to the online event add something like "run >nil: execute s:online_script" and in s:online_script you do this:

wait 1
mount myshare:

Bye,
Thomas

Offline Thomas

Re: Mounting A Samba Share on/just after boot
« Reply #1 on: January 18, 2006, 09:52:27 PM »

BTW, to run a script from WBStartup, you have to give it an icon. Create or copy a project icon, then open its icon information and change the default tool to c:iconx.

Bye,
Thomas

Offline Thomas

Re: Mounting A Samba Share on/just after boot
« Reply #2 on: January 19, 2006, 09:08:35 PM »
@mgerics: he does not want to change local shares but he wants to access remote shares. You cannot use SWAT to do that, you need SMB-Connect or SMBFS. The former works with a mountlist which has to be activated by the mount command.

Bye,
Thomas