1999-12-26 22:52:33 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
dir="CHANGETHIS"
|
|
|
|
|
|
|
|
if [ ! -d $dir ]; then
|
|
|
|
logger -i "dnetc client directory doesn't exist. ($dir)."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f $dir/dnetc ]; then
|
2000-02-27 20:07:13 +00:00
|
|
|
logger -i "dnetc client doesn't exist. ($dir/dnetc)."
|
1999-12-26 22:52:33 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f $dir/dnetc.ini ]; then
|
2000-02-27 20:07:13 +00:00
|
|
|
logger -i "dnetc client config file doesn't exist. ($dir/dnetc.ini)."
|
1999-12-26 22:52:33 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
email=`grep "^id=" $dir/dnetc.ini|cut -d"=" -f2`
|
|
|
|
|
2000-02-27 20:07:13 +00:00
|
|
|
if [ "$email" = "rc5@distributed.net" ]; then
|
1999-12-26 22:52:33 +00:00
|
|
|
logger -i "dnetc client running with default email address. ($email)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo -n " dnetc"
|
|
|
|
su -m nobody -c "$dir/dnetc -quiet" 2>/dev/null >/dev/null &
|