Date: Sun, 30 Sep 2001 16:08:01 +0200 From: Udo Schweigert <udo.schweigert@siemens.com> To: "David E. O'Brien" <obrien@FreeBSD.ORG> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc rc Message-ID: <20010930160801.A30603@alaska.cert.siemens.de> In-Reply-To: <200109250155.f8P1tMR19221@freefall.freebsd.org> References: <200109250155.f8P1tMR19221@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 24, 2001 at 18:55:21 -0700, David E. O'Brien wrote:
> obrien 2001/09/24 18:55:21 PDT
>
> Modified files:
> etc rc
> Log:
> Let people know when a startup script is skipped because it is not
> executable.
>
This gives a message if the startup directory is empty. The attached patch
fixes this.
Best regards
--
Udo Schweigert, Siemens AG | Voice : +49 89 636 42170
CT IC 3, Siemens CERT | Fax : +49 89 636 41166
D-81730 Muenchen / Germany | email : udo.schweigert@siemens.com
--- rc.orig Sun Sep 30 15:39:29 2001
+++ rc Sun Sep 30 15:53:33 2001
@@ -807,7 +807,9 @@
trap 'exit 1' 2
${script} start)
else
- echo "Skipping ${script}, not executable"
+ if [ -f "${script}" ]; then
+ echo "Skipping ${script}, not executable"
+ fi
fi
done
IFS="${script_save_sep}"
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010930160801.A30603>
