On Tue, 21 Jul 2009 13:21:04 +0100, RW wrote:
>On Tue, 21 Jul 2009 14:18:37 +0300
>Giorgos Keramidas wrote:
>> There's a catch here that may go unnoticed for a while...
>>
>> rc.conf may be sourced by /etc/rc *long* before filesystems are
>> mounted. As a result grep or awk may be not be availab
On Tue, Jul 21, 2009 at 12:24:09PM +0100, chris scott wrote:
> 2009/7/21 Giorgos Keramidas
>
> > On Tue, 21 Jul 2009 11:29:20 +0200, Polytropon wrote:
> > > On Tue, 21 Jul 2009 09:46:47 +0100, chris scott
> > wrote:
> > >> can i use backticks in rc.con
On Tue, 21 Jul 2009 14:18:37 +0300
Giorgos Keramidas wrote:
> There's a catch here that may go unnoticed for a while...
>
> rc.conf may be sourced by /etc/rc *long* before filesystems are
> mounted. As a result grep or awk may be not be available and stop
> rc.conf from loading.
rc.conf is so
On Tue, 21 Jul 2009 12:24:09 +0100, chris scott wrote:
>
> a=`echo $ifconfig_bge0 | /usr/bin/awk '{ for ( i=1 ; i <= NF; i++) { if ( $i
> ~ /[iI][nN][eE][tT]/ ) { sub(/\/.*/,"", $(i+1)); print $(i+1) } } }'`
> rsyncd_flags="--config=/etc/rsyncd.conf --address=$a"
This is far too complex for my ta
2009/7/21 Giorgos Keramidas
> On Tue, 21 Jul 2009 11:29:20 +0200, Polytropon wrote:
> > On Tue, 21 Jul 2009 09:46:47 +0100, chris scott
> wrote:
> >> can i use backticks in rc.conf?
> >
> > Basically, yes. The /etc/rc.conf file is run through sh, it is
> >
On Tue, 21 Jul 2009 11:29:20 +0200, Polytropon wrote:
> On Tue, 21 Jul 2009 09:46:47 +0100, chris scott wrote:
>> can i use backticks in rc.conf?
>
> Basically, yes. The /etc/rc.conf file is run through sh, it is
> a shell script that assigns values to variables, but can (ab)u
On Tue, 21 Jul 2009 09:46:47 +0100, chris scott wrote:
> can i use backticks in rc.conf?
Basically, yes. The /etc/rc.conf file is run through sh, it is
a shell script that assigns values to variables, but can (ab)use
it to execute programs.
> rsyncd_flags="--config=/etc/rsyncd.con
can i use backticks in rc.conf?
Basically i want a standard rc.conf and want to bind rsync to a specific ip
hence i want this in my rc.conf
rsyncd_flags="--config=/etc/rsyncd.conf --address="` ifconfig bce1 | grep
inet | awk '{print $2}'`
it works fine from the shell, h