From owner-freebsd-questions Thu Aug 24 7:37:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id 592B337B43E for ; Thu, 24 Aug 2000 07:37:36 -0700 (PDT) Received: (from lowell@localhost) by be-well.ilk.org (8.9.3/8.9.3) id KAA38835; Thu, 24 Aug 2000 10:37:35 -0400 (EDT) (envelope-from lowell) To: freebsd-questions@freebsd.org Subject: Re: read only / filesystem References: <20000824002732.A45983@dogma.freebsd-uk.eu.org> <20000824101341.D66923@wantadilla.lemis.com> <20000824030506.A47310@dogma.freebsd-uk.eu.org> <20000824114638.D37314@wantadilla.lemis.com> <44ya1mk9vr.fsf@lowellg.ne.mediaone.net> From: Lowell Gilbert Date: 24 Aug 2000 10:37:35 -0400 In-Reply-To: Lowell Gilbert's message of "24 Aug 2000 10:32:24 -0400" Message-ID: <44vgwqk9n4.fsf@lowellg.ne.mediaone.net> Lines: 63 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Lowell Gilbert writes: > A little less automagical, you could add a conf variable to handle it. > Perhaps something like: > > > *** rc~ Thu Aug 24 10:26:02 2000 > --- rc Thu Aug 24 10:30:47 2000 > *************** > *** 212,220 **** > > # Whack the pty perms back into shape. > # > ! chflags 0 /dev/tty[pqrsPQRS]* > ! chmod 666 /dev/tty[pqrsPQRS]* > ! chown root:wheel /dev/tty[pqrsPQRS]* > > # Clean up left-over files > # > --- 212,226 ---- > > # Whack the pty perms back into shape. > # > ! case ${read_only_dev} in > ! [Yy][eE][sS]) > ! ;; > ! *) > ! chflags 0 /dev/tty[pqrsPQRS]* > ! chmod 666 /dev/tty[pqrsPQRS]* > ! chown root:wheel /dev/tty[pqrsPQRS]* > ! ;; > ! esac > > # Clean up left-over files > # Oops. Missed a spot. How about the following, too: *************** *** 263,270 **** # Transitional symlink (for the next couple of years :) until all # binaries have had a chance to move towards /var/run/log. if [ ! -h /dev/log ]; then ! # might complain for r/o root f/s ! ln -sf /var/run/log /dev/log fi rm -f /var/run/log --- 263,276 ---- # Transitional symlink (for the next couple of years :) until all # binaries have had a chance to move towards /var/run/log. if [ ! -h /dev/log ]; then ! # don't complain for r/o root f/s ! case ${read_only_dev} in ! [Yy][eE][sS]) ! ;; ! *) ! ln -sf /var/run/log /dev/log ! ;; ! esac fi rm -f /var/run/log To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message