diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 860e770e..b6bfe5e4 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -47,6 +47,8 @@ MINIMUM_PASSWORD_LENGTH=8 VOIP_PORT=64738 VOIP_ONION_PORT=8095 +PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}" + USB_DRIVE=sdb # get default USB from config file CONFIG_FILE=$HOME/${PROJECT_NAME}.cfg @@ -57,6 +59,10 @@ if [ -f $CONFIG_FILE ]; then USB_DRIVE=$(echo ${USB_DRIVE} | awk -F '/' '{print $3}' | sed 's|1||g' | sed 's|2||g') fi fi + # read the location of the main project repo + if grep -q "PROJECT_REPO" $CONFIGURATION_FILE; then + PROJECT_REPO=$(grep "PROJECT_REPO" $CONFIGURATION_FILE | awk -F '=' '{print $2}') + fi fi function any_key { @@ -76,6 +82,11 @@ function check_for_updates { any_key } +function set_project_repo { + data=$(tempfile 2>/dev/null) + # TODO +} + function add_user { data=$(tempfile 2>/dev/null) trap "rm -f $data" 0 1 2 5 15