~grubng-dev/grubng/tools-urlsdb

1
2
3
4
5
6
7
8
9
10
11
12
#Script check amount of available workunits. If there no workunits - generate new

amount=`ls /home/thindil/workunits/wu | wc -l`
if [ $amount = 0 ]
then
    amount=`ps -C grub-urlsdb | wc -l`
    if [ $amount = 1 ]
    then
	cd /home/thindil/workunits
	mono urlsdb.exe --quiet createwu
    fi
fi