Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 1998 16:09:07 -0800 (PST)
From:      Simon Shapiro <shimon@simon-shapiro.org>
To:        freebsd-current@FreeBSD.ORG
Subject:   FW: Re: devfs persistence
Message-ID:  <XFMail.980217160907.shimon@simon-shapiro.org>

next in thread | raw e-mail | index | archive | help
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 <sef@kithrup.com>
To: shimon@simon-shapiro.org
Newsgroups: kithrup.freebsd.current
Subject: Re: devfs persistence
Cc: 

In article
<XFMail.980217114957.shimon.kithrup.freebsd.current@simon-shapiro.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980217160907.shimon>