From owner-freebsd-questions@FreeBSD.ORG  Thu Feb 23 18:50:54 2012
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 03FD51065670
	for <freebsd-questions@freebsd.org>;
	Thu, 23 Feb 2012 18:50:54 +0000 (UTC)
	(envelope-from robarrght@gmail.com)
Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50])
	by mx1.freebsd.org (Postfix) with ESMTP id 7CE0E8FC19
	for <freebsd-questions@freebsd.org>;
	Thu, 23 Feb 2012 18:50:53 +0000 (UTC)
Received: by wgbdq11 with SMTP id dq11so1370510wgb.31
	for <freebsd-questions@freebsd.org>;
	Thu, 23 Feb 2012 10:50:52 -0800 (PST)
Received-SPF: pass (google.com: domain of robarrght@gmail.com designates
	10.180.101.165 as permitted sender) client-ip=10.180.101.165; 
Authentication-Results: mr.google.com;
	spf=pass (google.com: domain of robarrght@gmail.com
	designates 10.180.101.165 as permitted sender)
	smtp.mail=robarrght@gmail.com;
	dkim=pass header.i=robarrght@gmail.com
Received: from mr.google.com ([10.180.101.165])
	by 10.180.101.165 with SMTP id fh5mr5952065wib.10.1330023052640
	(num_hops = 1); Thu, 23 Feb 2012 10:50:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	bh=8cL2gtEJ8Te0kmI5cT9hLbZNDWXd6UVXx1nKkWKkPDM=;
	b=oLdKwXYYiUYRWPwylZ8DlJNZeqS9HO7dE6BAZUB8/qVUbIm/5H5B3Rb7fXIwuvtDqQ
	dD6KjV3ulsEAQ02eMpCo0/CRjnMr2+1a1OLJV4YnwM+2KsA5w1uZXimw0g6HmsYgp2ZW
	uxViGb1drVZouEjP9S0IAfEIhFYRz1eqlRpcQ=
MIME-Version: 1.0
Received: by 10.180.101.165 with SMTP id fh5mr4693861wib.10.1330021267770;
	Thu, 23 Feb 2012 10:21:07 -0800 (PST)
Received: by 10.223.143.75 with HTTP; Thu, 23 Feb 2012 10:21:07 -0800 (PST)
Date: Thu, 23 Feb 2012 12:21:07 -0600
Message-ID: <CAHreZJOzZfVu56qynx1Tyi1YUkMJOmUyXm6ZD-YWAnFpkv3ZeQ@mail.gmail.com>
From: Robarrght <robarrght@gmail.com>
To: freebsd-questions@freebsd.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: (c)dialog working differently during boot in script called by rc
 system than after boot?
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 23 Feb 2012 18:50:54 -0000

(Background)
I have a script that uses dialog or cdialog (system, not devel,) to
prompt for network settings on my FreeBSD 8.2-RELEASE box. =A0When I
make certain changes with the script, a reboot is required. =A0But, this
would not be necessary if I ran the script during boot, before
networking is setup. =A0I've hooked up my script to the rc boot system.

(Issue)
The trouble is that when the rc.d system runs the script, instead of
the proper dialog boxes working as expected, all I get is a cleared
out black screen with a white arrow locked dead center that won't
move. =A0After boot, the script works normally. =A0I even have the script
running in getty on a virtual console, where it works like a champ.

So, what is the hangup? =A0Are there dependencies that (c)dialog needs
which aren't started yet?

(Troubleshooting)
If I simply run
dialog --msgbox "Test message" 6 25
in the rc.d file, instead of having it call my script, I get the same
bad behavior. =A0That suggests that it is not my script, but the
environment ... right?
I have played with the order of when the test dialog message (my rc.d
file) is ordered and even when it goes way at the end, after cron
starts up, (which is getting pretty close to the end,) no improvement.

I've seen this work on an older FreeBSD 6.2-STABLE box. =A0But, when I
cranked one of those up and tried the same simple dialog test directly
out of the rc.d script, it yielded a black and white ascii only
version of the message box. =A0That was an improvement over what I'm
getting on my current FreeBSD 8.2-RELEASE version. =A0But, I wish I knew
what the former magic was.

Does anyone out there see what I'm missing?

Thank you,
Robarrght