Hello wise ones,

I am trying to mount a windows share at boot with mount_smbfs.  Since I
have to use the noauto option in fstab (filesystems in fstab are mounted
before the network is initialized), I have created a startup script
(smbfsstartup.sh) and placed it in /usr/local/etc/rc.d:

case "$1" in
    start)
        /sbin/mount /myshare
        ;;
    stop)
        #Maybe do something here...
        ;;
    *)
    ;;
esac

This exact same script worked just fine on another machine.  When I
moved it to a different machine I get this message when my system boots
up:

Local Package Initialization : (skipping smbfsstartup.sh, not
executable).

I have modified my nsmb.conf files appropriately in both /etc and
/usr/local/etc.  Using "mount" at the command prompt works just fine.  I
am not sure why my startup script is not working on this machine, the
syntax looks fine to me.

As a clue, when I mount from the command line, I get the following
message:

netsmb_dev: loaded

Is this some kernel module that isn't getting loaded at boot time, and
causing the script to fail?  Any thoughts?

Thanks,
Adam Lofstedt






To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to