tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rc.d/rndctl

On Thu, Sep 18, 2008 at 10:44:01AM +0200, Hubert Feyrer wrote:
> On Thu, 18 Sep 2008, Alan Barrett wrote:
>> For example, you could have let rndctl_flags take a semicolon-separated
>> list of space-separated lists, like
>> rndctl_flags="-c -e -t disk rnd tty; -c -t net; -C -E -d wd0"
> (Off-topic) something like this would be nice for ifconfig_ifX too, to 
> not require an /etc/ifconfig.ifX file if multiple lines are needed.

I'd suggest to just handle /etc/ifconfig.ifX and ifconfig_ifX identical,
basically doing:

if [ -n "$ifconfig_ifX" ]; then
        echo $ifconfig_ifX
        cat /etc/ifconfig_ifX
fi | while read arg; do

like the current loop. You can then set
ifconfig_ifX=" alias alias"


Home | Main Index | Thread Index | Old Index