yum () { if [ -f "/var/spool/nodesync/transaction_started" ]; then /usr/bin/yum $@ else echo "You need to start new transaction with 'nodesync transaction start' to be able to use yum" fi }