backticks in rc.conf

chris scott kraduk at googlemail.com
Tue Jul 21 09:11:48 UTC 2009


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, however on reboot the address section doesnt
expand, or rather it goes blank


eg

Jul 20 16:56:37 X root: /etc/rc: DEBUG: run_rc_command: doit:
/usr/local/bin/rsync --config=/etc/rsyncd.conf --address= --daemon


More information about the freebsd-questions mailing list