X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2Fstart_ivac;fp=src%2Fstart_ivac;h=426d436b0808847d73842de688d6888b5a5257fc;hp=0000000000000000000000000000000000000000;hb=84516616d9547a46e6676ba7e942edc60009345a;hpb=0014e576011872ca7f9609362fa080fd29acbf5a diff --git a/src/start_ivac b/src/start_ivac new file mode 100755 index 0000000..426d436 --- /dev/null +++ b/src/start_ivac @@ -0,0 +1,25 @@ +#!/bin/bash + +KEEPLOG=1 + +# ivac start script +if [ ! -d ~/.ivac ] ; then + echo "creating .ivac directory ..." + mkdir ~/.ivac +fi + +IVAC=`type -p ivac` +[ -z "$IVAC" ] && IVAC="./ivac" + +if [ ! -e $IVAC ] ; then + echo "ivac executable not found :(" +else + echo "running $IVAC ..." + $IVAC $@ 2> ~/.ivac/log + if [ -z "`echo $@ | grep -- -h`" ] ; then + reset + clear + fi +fi + +[ "$KEEPLOG" = "0" ] && rm -f ~/.ivac/log