From owner-freebsd-questions Thu Dec 19 9:10:37 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 0A42837B401 for ; Thu, 19 Dec 2002 09:10:35 -0800 (PST) Received: from mail1.uits.uconn.edu (mail1.uits.uconn.edu [137.99.25.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BDD343E4A for ; Thu, 19 Dec 2002 09:10:34 -0800 (PST) (envelope-from matt@forsetti.com) Received: from [137.99.80.149] (d80h149.public.uconn.edu [137.99.80.149]) by mail1.uits.uconn.edu (8.11.6/8.11.6) with ESMTP id gBJH7rC05942; Thu, 19 Dec 2002 12:07:53 -0500 Subject: Re: Problem with my startup script? From: Matt Smith To: adaml@visimation.com Cc: "'freebsd-questions'" In-Reply-To: <002001c2a77f$f40db760$6f00000a@5adam5> References: <002001c2a77f$f40db760$6f00000a@5adam5> Content-Type: text/plain Organization: Message-Id: <1040317672.70744.1.camel@d80h149.public.uconn.edu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 19 Dec 2002 12:07:52 -0500 Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1, required 6, AWL, IN_REP_TO, QUOTED_EMAIL_TEXT, REFERENCES, SIGNATURE_SHORT_DENSE, SPAM_PHRASE_01_02, TO_BE_REMOVED_REPLY) 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 On Thu, 2002-12-19 at 11:59, Adam Lofstedt wrote: > 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 Is your script executable? chmod 755 /usr/local/etc/rc.d/smbfsstartup.sh -matt -- Matt Smith To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message