From owner-freebsd-questions Sat Mar 2 4:37:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from laika.martini.nu (12-224-18-46.client.attbi.com [12.224.18.46]) by hub.freebsd.org (Postfix) with SMTP id 5C28837B405 for ; Sat, 2 Mar 2002 04:37:06 -0800 (PST) Received: (qmail 81211 invoked by uid 1001); 2 Mar 2002 12:37:05 -0000 Date: Sat, 2 Mar 2002 04:37:04 -0800 To: Thomas Fiebig Cc: questions@FreeBSD.org Subject: Re: Using NIS only, if on network? Message-ID: <20020302043704.B77232@martini.nu> References: <3C7DE194.E56971C5@lrs.e-technik.uni-erlangen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C7DE194.E56971C5@lrs.e-technik.uni-erlangen.de>; from "tfie@lrs.e-technik.uni-erlangen.de" on Thu, Feb 28, 2002 at 08:51:48AM X-Sysinfo: FreeBSD 4.5-RELEASE, up 6 days From: Mahlon X-Delivery-Agent: TMDA/0.44 (Python 2.2; freebsd-4.5-RELEASE-i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > my question relates to the NIS part. I have a notebook, which is sometimes > included in my network, sometimes not (this is, why I use a thing like a > notebook). Now some problems during the booting process occur, if I have > installed the NIS things in master.passwd and groups and the notebook is not in > the network. This seams clear because it doesn't find the NIS information. > > Can I do something like a depending booting? Network YES => use NIS, Network NO > => do not use NIS Don't use the 'normal' NIS variables in rc.conf. Roll your own script that checks ifconfig output for 'status: active' on your main network interface. If it finds it, it fires up ypbind. If not, exit. Drop it into the rc.d dir, away you go. Of course, this also assumes you have a local user to login as that doesn't require your NIS server... otherwise you'll only be able to login as root. -Mahlon Mahlon E. Smith jabber id: mahlon@chat.martini.nu http://www.martini.nu/ get pgp key: mahlon-pgp@martini.nu .......................................................................... In rivo fimi sine rivo sum. Latin for : 'I'm up the creek without a paddle.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message