This repository has been archived on 2024-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
2013-10-11 23:07:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-10-29 10:10:31 +00:00
|
|
|
DISABLE_UPDATER=0
|
|
|
|
CONFIG_FILE=$HOME/.config/hedera/config.sh
|
|
|
|
|
|
|
|
if [ -x $CONFIG_FILE ]
|
|
|
|
then
|
|
|
|
. $CONFIG_FILE
|
|
|
|
fi
|
2013-10-14 12:08:06 +00:00
|
|
|
|
|
|
|
while getopts ":u" OPTION
|
|
|
|
do
|
|
|
|
case $OPTION in
|
|
|
|
u)
|
2013-10-29 10:10:31 +00:00
|
|
|
DISABLE_UPDATER=1
|
2013-10-14 12:08:06 +00:00
|
|
|
;;
|
|
|
|
\?|:)
|
2013-10-18 11:57:29 +00:00
|
|
|
echo "Usage: hedera [-u]"
|
2013-10-14 12:08:06 +00:00
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2013-10-29 10:10:31 +00:00
|
|
|
if [ "$DISABLE_UPDATER" -eq "0" -a -x @bindir@/vn-updater-gui ]
|
2013-10-11 23:07:35 +00:00
|
|
|
then
|
|
|
|
echo "Running updater..."
|
|
|
|
@bindir@/vn-updater-gui
|
|
|
|
fi
|
|
|
|
|
|
|
|
export LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN=1
|
2013-10-14 12:08:06 +00:00
|
|
|
|
|
|
|
exec hedera-bin
|