From owner-freebsd-questions Thu Dec 19 13:32:14 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 3BBCB37B407 for ; Thu, 19 Dec 2002 13:32:12 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBE7F43EDA for ; Thu, 19 Dec 2002 13:32:02 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a180.otenet.gr [212.205.215.180]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gBJLVuSs004108 for ; Thu, 19 Dec 2002 23:32:00 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gBJLVtXU001090 for ; Thu, 19 Dec 2002 23:31:55 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gBJHP72Z001670; Thu, 19 Dec 2002 19:25:07 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 19 Dec 2002 19:25:07 +0200 From: Giorgos Keramidas To: Adam Lofstedt Cc: "'freebsd-questions'" Subject: Re: Problem with my startup script? Message-ID: <20021219172507.GC985@gothmog.gr> References: <002001c2a77f$f40db760$6f00000a@5adam5> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002001c2a77f$f40db760$6f00000a@5adam5> 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 2002-12-19 08:59, Adam Lofstedt wrote: > 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). Take a look at the permissions of the script file with ls(1). The message is very verbose already. The file has a name that ends in `.sh' but it is not executable, and this is why it's skipped. Quick fix: # chmod 0750 /usr/local/etc/rc.d/smbfsstartup.sh - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message