# Obsolete. Do not use this.(2015/11/22) #----- HAST initiate (Only boot time needed) if checkyesno hastd_enable; then echo "hast initializing" for if in `/sbin/ifconfig -l`; do if [ "0" != `/sbin/ifconfig ${if}|/usr/bin/grep -c carp` ]; then if [ -n "${if}" ]; then state=`/sbin/ifconfig ${if}|/usr/bin/grep carp|/usr/bin/awk '{print $2 " " $4}'` [ -x /usr/local/sbin/carp-hast-switch ] && \ /usr/local/sbin/carp-hast-switch ${state##* }@${if} ${state%% *} break else echo -n " no carp I/F" fi fi done unset if state echo " ... done" fi