Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Nov 2009 14:52:23 +0000
From:      Frank Shute <frank@shute.org.uk>
To:        Jason <jhelfman@e-e.com>
Cc:        questions@freebsd.org
Subject:   Re: install.cfg scripting issue
Message-ID:  <20091107145223.GA91904@orange.esperance-linux.co.uk>
In-Reply-To: <20091106193137.GA73071@eggman.experts-exchange.com>
References:  <20091106193137.GA73071@eggman.experts-exchange.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 06, 2009 at 11:31:39AM -0800, Jason wrote:
>
> Hi,
> 
> I am having a heck of a time getting an automated installation to get a
> couple of commands done, and was wondering if anyone would be able to offer
> any assistance.
> 
> Everything works, but post does not. I know we will more than likely move to
> a post pkg for configuration, but due to the time-frame to deliver, what
> follows below will suit needs just fine.
> 
> command='echo sshd_enable="YES" >> /etc/rc.conf.local'
> system
> command=cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
> system
> command=/sbin/reboot
> system
> 
> I've tried the first command, and it fails, with a "command not found," and
> I have yet to get past those command to the last commands. I have been using
> single ticks, and double-quotes, but nothing is seeming to work. In
> addition to this, I have also escaped the quotes.
> 
> Any help is much appreciated.
> 
> Thanks,
> Jason

I'm not familiar with install.cfg but have you tried using the full
path for your command? E.g:

command='/bin/echo sshd_enable=\"YES\" >> /etc/rc.conf.local'

Ditto with your other commands.


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html





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