Skip site navigation (1)Skip section navigation (2)
Date:      24 Aug 2000 10:37:35 -0400
From:      Lowell Gilbert <lowell@world.std.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: read only / filesystem
Message-ID:  <44vgwqk9n4.fsf@lowellg.ne.mediaone.net>
In-Reply-To: Lowell Gilbert's message of "24 Aug 2000 10:32:24 -0400"
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Lowell Gilbert <lowell@world.std.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44vgwqk9n4.fsf>