On Tue, Aug 4, 2009 at 6:00 PM, <[email protected]> wrote:
> On Tue, 4 Aug 2009, Stuart Henderson wrote:
>
>>               # bring carp interfaces down gracefully
>> -             ifconfig -a|grep '^carp.*:'|cut -f1 -d:|while read if
>> -             do
>> -                     ifconfig $if down
>> +             ifconfig | while read if junk; do
>
> Need -a for ifconfig?

Please read ifconfig(8)


>> +                     case $if in
>> +                             carp*:) ifconfig ${if%:} down ;;
>
> Maybe be more precise:
>
> carp[0-9]*)
>
> (Like example in etc/rc.d/raidframeparity)

Are we talking about the same BSD?


>> +                     esac
>>               done
>
> Also I have been using full paths for some "sbin" tools (because I often
> use sudo on systems using default paths). But I see this rc script had
> that problem in first place.

1) You've been invoking /etc/rc by hand?  Really?
2) please read a dozen lines earlier in /etc/rc


Philip Guenther

Reply via email to