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