Date: Tue, 13 Jul 1999 12:25:37 -0400 (EDT) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: are.bryne@communique.no (Are Bryne) Cc: freebsd-questions@FreeBSD.ORG, are.bryne@communique.no Subject: Re: [ does not work in /etc/rc Message-ID: <199907131625.MAA08984@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <Pine.BSF.4.05.9907131755330.11317-100000@rune.communique.no> from Are Bryne at "Jul 13, 99 05:58:34 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Are Bryne wrote, > 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. Odd, the tests seem to be "failing" to the affirmative. No error output either, apparently. > 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 [snip] > Interactively, the tests work, though... > > Does anyone know what's happening? Does using test(1) work? Oh, and the /etc/rc file _is_ using /bin/sh, right? -- Crist J. Clark cjclark@home.com 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?199907131625.MAA08984>