On 2009/08/05 11:08, Stuart Henderson wrote: > On 2009/08/04 20:00, [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? > > no, this script doesn't need to be backwards-compatible with an old > ifconfig(8) binary, and there's less output this way. > > > > + case $if in > > > + carp*:) ifconfig ${if%:} down ;; > > > > Maybe be more precise: > > > > carp[0-9]*) > > ah, carp[0-9]*:) would indeed be better. >
carp+([0-9]):)
