From owner-freebsd-questions Tue Jul 13 9: 8:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from www.communique.no (www.communique.no [193.212.204.33]) by hub.freebsd.org (Postfix) with SMTP id 2A5931531B for ; Tue, 13 Jul 1999 09:08:55 -0700 (PDT) (envelope-from are@communique.no) Received: (qmail 11333 invoked by uid 1001); 13 Jul 1999 15:58:35 -0000 Date: Tue, 13 Jul 1999 17:58:34 +0200 (CEST) From: Are Bryne X-Sender: are@rune.communique.no To: FreeBSD questions list Cc: Are Bryne Subject: [ does not work in /etc/rc Message-ID: Organization: Communique DA MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I am working on a pc whose / partition unfortunately was nuked. After restoring everything as should be (to my knowledge), I am having problems booting the machine. It is a 3.2-RELEASE install. The problem seems to occur in /etc/rc. [ does not work, at least not for -f and !=. I've md5'ed my hard linked /bin/test and /bin/[, to be certain the binaries are the same as for the installation binaries. Since the tests do not work, the rc.diskless1 file is slurped in by /etc/rc. I've tried moving rc.diskless1 elsewhere, and then I get an error telling me the file does not exist. I've added the following after 'export PATH' in /etc/rc: #debugging: echo $PATH echo /sbin/sysctl -n vfs.nfs.diskless_valid echo if [ -f /etc/rc.diskless1 ]; then echo "-f does not work"; elif then echo "-f works"; fi if [ 0 != 0 ]; then echo "!= does not work"; elif then echo "!= works"; fi echo Here is the relevant output: ... npx0: INT 16 interface changing root device to wd0s1a /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin 0 -f does not work != does not work .: Can't open /etc/rc.diskless1 Enter full pathname of shell or RETURN for /bin/sh: Interactively, the tests work, though... Does anyone know what's happening? Thank you in advance. Regards, Are Bryne Communiqué DA Phone: +47 22 44 33 99 Parkveien 51b E-mail: admin@communique.no N-0256 Oslo URL: http://www.communique.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message