Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 1995 01:43:47 -0700
From:      Pete Shipley <shipley@merde.dis.org>
To:        freebsd-hackers@freebsd.org
Subject:   suggested (minor) change to /etc/rc
Message-ID:  <199508230843.BAA11009@merde.dis.org>

next in thread | raw e-mail | index | archive | help
-----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-----



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