From owner-freebsd-hackers Wed Aug 23 01:57:14 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id BAA20566 for hackers-outgoing; Wed, 23 Aug 1995 01:57:14 -0700 Received: from soda.CSUA.Berkeley.EDU (soda.CSUA.Berkeley.EDU [128.32.43.52]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id BAA20537 for ; Wed, 23 Aug 1995 01:57:08 -0700 Received: (uucp@localhost) by soda.CSUA.Berkeley.EDU (8.6.11/PHILMAIL-1.11) with UUCP id BAA20961 for freebsd-hackers@FreeBSD.org; Wed, 23 Aug 1995 01:48:32 -0700 Received: from merde.dis.org by merde.dis.org (8.6.11/MERDE-940323) id BAA11009; Wed, 23 Aug 1995 01:43:48 -0700 Message-Id: <199508230843.BAA11009@merde.dis.org> To: freebsd-hackers@freebsd.org Subject: suggested (minor) change to /etc/rc X-Phone: (510) 849-2230 X-Snail-address: 2560 Bancroft way #51;Berkeley CA 94704-1700 X-Geek: GCS d--(-), p, c+++, l-, u+, e+, m* s++/+, n- h++ f+ g+ w+ t+ r y++ MIME-Version: 1.0 Content-Type: text/x-pgp; charset="us-ascii" Content-ID: <11004.809167426.1@merde.dis.org> Content-Description: Pgp signed cleartext Content-Transfer-Encoding: quoted-printable Date: Wed, 23 Aug 1995 01:43:47 -0700 From: Pete Shipley Sender: hackers-owner@freebsd.org Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- I just setup a laptop with FreeBSD-current and i swap the sysconfig file around to change the identity of the system based on where I am. eg: /etc/sysconfig-home /etc/sysconfig-work gets copied to /etc/sysconfig [yea yea, no shit, I know... everyone does this :-] at Home I want to NFS mount my home-servers disk but on the road I do not want to use NFS. instead of also editing or swaping the /etc/fstab file I just changed the line in /etc/rc from: mount -a -t nfs >/dev/null 2>&1 to = if [ "X${nfs_client}" =3D X"YES" ]; then mount -a -t nfs >/dev/null 2>&1 fi thus if nfs_client=3DNO (from /etc/sysconfig) I do not even try to NFS mou= nt. -Pete PS: Next is to add a prompter to the /etc/rc script to prompt me on that sysconfig to use :-) -----BEGIN PGP SIGNATURE----- Version: 2.6 iQBVAwUBMDrqP3ynuL1gkffFAQErSgH+MAAYT07Tl1SHEjuOYJd+pD53Lj6z6pLs ipDYdSqQboeXNv936R1ibZ8RTKjtKl06/8kGTdNkMniLK4K7JKpDCA=3D=3D =3DjR8Q -----END PGP SIGNATURE-----