2008-10-12 00:54:17 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# BOINC Manager on Unix
|
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# BOINC - start the BOINC Manager
|
|
|
|
|
|
|
|
# Source the configuration file for the boinc-client init script.
|
|
|
|
#
|
2009-05-04 17:59:30 +02:00
|
|
|
config_files="/etc/boinc-client.conf /etc/sysconfig/boinc-client"
|
2008-10-12 00:54:17 +02:00
|
|
|
|
2011-04-28 19:29:54 +02:00
|
|
|
# provide a default
|
|
|
|
BOINCDIR=/var/lib/boinc
|
|
|
|
|
2008-10-12 00:54:17 +02:00
|
|
|
# Find the correct config file
|
|
|
|
#
|
|
|
|
for config_file in $config_files ; do
|
|
|
|
if [ -f ${config_file} ] ; then
|
|
|
|
. ${config_file};
|
|
|
|
break;
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2009-05-04 17:59:30 +02:00
|
|
|
# Checking for gui_rpc_auth.cfg
|
2011-04-28 19:29:54 +02:00
|
|
|
if ! test -f ~/gui_rpc_auth.cfg ; then
|
|
|
|
ln -s /var/lib/boinc/gui_rpc_auth.cfg .
|
|
|
|
fi
|
2009-05-04 17:59:30 +02:00
|
|
|
|
2008-10-12 00:54:17 +02:00
|
|
|
# Change directory and start BOINC Manager
|
|
|
|
#
|
2011-04-28 19:29:54 +02:00
|
|
|
cd "$BOINCDIR"
|
|
|
|
exec boinc-gui
|