#!/bin/bash
HOME="/home/sztanpet/et"
echo
if [ "$HOME" != "" ]	; then
defetdir=$HOME/et/etchk
fi
ok=false
while [ $ok = false ]
do
if [ "$defetdir" != "" ]; then
echo -n "Hol van az etchk? [$defetdir]: "
read etdir
[ "$etdir" = "" ] && etdir=$defetdir
else
echo -n "Hol van az etchk? "
read etdir
fi
if [ ! -f $etdir ]; then
echo "etchk nem talalhato: $etdir !"
else
ok=true
fi
done
echo -n "Crontab kiirasa... "
echo "0,30 * * * * $etdir >/dev/null 2>&1">~/cron-tmp11
crontab ~/cron-tmp11 2>/dev/null
rm -f ~/cron-tmp11
echo " Kesz."