From owner-freebsd-current Tue Feb 17 17:03:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA05698 for freebsd-current-outgoing; Tue, 17 Feb 1998 17:03:30 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from sendero.simon-shapiro.org (sendero-fxp0.Simon-Shapiro.ORG [206.190.148.34]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA05577 for ; Tue, 17 Feb 1998 17:03:25 -0800 (PST) (envelope-from shimon@sendero-fxp0.simon-shapiro.org) Received: (qmail 22320 invoked by uid 1000); 18 Feb 1998 00:09:07 -0000 Message-ID: X-Mailer: XFMail 1.3-alpha-020998 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Tue, 17 Feb 1998 16:09:07 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: The Simon Shapiro Foundation From: Simon Shapiro To: freebsd-current@FreeBSD.ORG Subject: FW: Re: devfs persistence Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I fail to reverse-DNS your address. Since your suggestion is such an improvement over my pretend code. Especially considering the perfromance improvement and not needing /usr mounted to run the code, I am taking the liberty to thank you and post your comment for all to see. -----FW: <199802172349.PAA27282@kithrup.com>----- Date: Tue, 17 Feb 1998 15:49:46 -0800 (PST) From: Sean Eric Fagan To: shimon@simon-shapiro.org Newsgroups: kithrup.freebsd.current Subject: Re: devfs persistence Cc: In article you write: >So, if I create a file /etc/devfs.conf with something like : > ># Sample /etc/devfs.conf > >sd33s1a rdbms-PartA 0660 pgsql.DBA >cuaa00 mouse 0666 bin.bin >sd64s2g nil 0600 nil > > >and in /etc/rc put something like: > >if [ -f /etc/devfs.conf ] > then > line_no=0 > cat /etc/devfs.conf | grep -v '^#" | grep -v '^$' | while read line > do > orig=`echo ${line} | awk '{ print $1 }'` > link=`echo ${line} | awk '{ print $2 }'` > perms=`echo ${line} | awk '{ print $3 }'` > owner=`echo ${line} | awk '{ print $3 }'` Well, that would be better done as: ... | while read orig link perms owner rest :) Sean. --------------End of forwarded message------------------------- ---------- Sincerely Yours, Simon Shapiro Shimon@Simon-Shapiro.ORG Voice: 503.708.7858 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message