1 2 3 4 5 6 7 8 9 10
ORG=org.open-fcoe.libhbalinux LIB=/usr/lib64/libhbalinux.so.2.0.2 STR="$ORG $LIB" CONF=/etc/hba.conf if test -f $CONF; then grep -E -q ^[[:space:]]*$ORG[[:space:]]+$LIB $CONF if test $? -ne 0; then echo $STR >> $CONF; fi fi
1 2 3 4 5 6
ORG=org.open-fcoe.libhbalinux CONF=/etc/hba.conf if test -f $CONF; then grep -v $ORG $CONF > /etc/hba.conf.new mv /etc/hba.conf.new /etc/hba.conf fi