From owner-freebsd-questions Thu Dec 19 8:57:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3656137B401 for ; Thu, 19 Dec 2002 08:57:12 -0800 (PST) Received: from visimation.com (visimation.com [206.169.230.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6E3C43ED1 for ; Thu, 19 Dec 2002 08:57:11 -0800 (PST) (envelope-from adaml@visimation.com) Received: from Spooler by visimation.com (Mercury/32 v3.31) ID MO000166; 19 Dec 02 08:57:11 -0800 Received: from spooler by visimation.com (Mercury/32 v3.31); 19 Dec 02 08:56:58 -0800 Received: from 5adam5 (10.0.0.111) by visimation.com (Mercury/32 v3.31) with ESMTP ID MG000165; 19 Dec 02 08:56:56 -0800 Reply-To: From: "Adam Lofstedt" To: "'freebsd-questions'" Subject: Problem with my startup script? Date: Thu, 19 Dec 2002 08:59:11 -0800 Organization: Visimation, Inc. Message-ID: <002001c2a77f$f40db760$6f00000a@5adam5> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message