I use Samba to map to a Windows server after booting into DSL.
Samba can create a 'mountscript' which is the CLI command to mount the share. It looks like this:
#! /bin/sh # SMB mount script # created by LinNeighborhood smbmount //SERVER/Share /home/dsl/mnt/SERVER/Share -o username=myUsername%myPassword,ip=192.168.1.101,workgroup=SERVER
How can I get this mountscript to run automatically ever time I reboot DSL?
I can't edit fstab because it's in the KNOPPIX compressed image.
Is there another approach I'm overlooking? Thank you DSL gurus!!
PS: I have Samba install itself via myDSL if it matters. I assume this script has to run sometime after myDSL loads all of the extensions...
PPS: The 'Memorize Mount Shares / Remount on next Startup' option available through the Samba Preferences menu does not appear to work. I'm unsure why...Did you try putting it into /opt/bootlocal.sh? Commands in this file run out of the boot sequence and is designed specificly for this purpose.
Quote (Mule @ May 06 2006,23:50)
I can't edit fstab because it's in the KNOPPIX compressed image.
Sure u can.... Just add it to the list of files to be backup/restore, i.e: select the file in emelfm and click "Add2Filetool" button... (I assume u have a USB pen or something where u can save ur backup.tar.gz file.... this is what I do) RNR - Sorry if I misunderstood what you were asking. I thought you were look for a way to execute the command
when you boot your machine. I was suggesting editting the file /opt/bootlocal.sh and adding the line to this file. It will then execute when you boot your machine. Sorry, I do not have an answer about fstab and if that is what you want or need maybe someone else can help. I was proposing you try this alternative to the edit of the fstab file.dtf, The question wasn't from me... it was from Mule (look at the first post) I was just answering him... but maybe your answer was what he was looking for... I don't know more than u do m8... Next Page...
original here.