Re: Need /bin/sh script help

2006-04-12 Thread Garrett Cooper
Garrett Cooper wrote: Hello again all, Just making a series of sh scripts to help automate updating and whatnot of my fileserver (since I am trying to avoid having mistakes occur with my system, and maybe help the community out a bit by providing some decent means of updating their own mac

Re: Need /bin/sh script help

2006-04-11 Thread Jan Grant
On Tue, 11 Apr 2006, [EMAIL PROTECTED] wrote: > On Mon, 10 Apr 2006 22:30:32 -0700 Garrett Cooper wrote (my brief response > follows all of his text): > > Just making a series of sh scripts to help automate updating and > whatnot of my fileserver (since I am trying to avoid having mistake

Re: Need /bin/sh script help

2006-04-11 Thread [EMAIL PROTECTED]
On Mon, 10 Apr 2006 22:30:32 -0700 Garrett Cooper wrote (my brief response follows all of his text): Just making a series of sh scripts to help automate updating and whatnot of my fileserver (since I am trying to avoid having mistakes occur with my system, and maybe help the community out

Re: Need /bin/sh script help

2006-04-11 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Garrett Cooper thusly... > > I was wondering if anyone could help me out with the following > script I've developing (the grep if statements are incorrect..): > > #!/bin/sh > # > > KC=""; > > cd /usr/src; > > if [ -n `grep -e s/KERNCONF=/ /etc/make.conf` ]

Re: Need /bin/sh script help

2006-04-11 Thread RW
On Tuesday 11 April 2006 06:30, Garrett Cooper wrote: > cd /usr/src; > if [ -n `grep -e s/KERNCONF=/ /etc/make.conf` ] # want to look for > KERNCONF in /etc/make.conf if [ `make -V KERNCONF` ] > read KERNCONF; > KC="KERNCONF=$KERNCONF"; > fi You need to check that KC actually e