diff --git a/src/freedombone-image b/src/freedombone-image index 32982424..77a11b50 100755 --- a/src/freedombone-image +++ b/src/freedombone-image @@ -33,6 +33,8 @@ PROJECT_NAME='freedombone' export TEXTDOMAIN=${PROJECT_NAME}-image export TEXTDOMAINDIR="/usr/share/locale" +PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}" + # recommended RAM for virtual machines VM_MEMORY='1G' @@ -199,6 +201,10 @@ case $key in shift ONION_ONLY="$1" ;; + -r|--repo|--repository) + shift + PROJECT_REPO="$1" + ;; *) # unknown option ;; @@ -283,7 +289,8 @@ make $IMAGE_TYPE \ MINIMAL_INSTALL="$MINIMAL_INSTALL" \ SSH_PORT="$SSH_PORT" \ ONION_ONLY="$ONION_ONLY" \ - IMAGE_NAME="$IMAGE_NAME" + IMAGE_NAME="$IMAGE_NAME" \ + PROJECT_REPO="$PROJECT_REPO" if [ ! "$?" = "0" ]; then echo $'Build failed' diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 0e3e4e72..98ef75e4 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -33,6 +33,8 @@ PROJECT_NAME='freedombone' INSTALL_DIR=/root/build COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt +PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}" + # username created by default within a debian image GENERIC_IMAGE_USERNAME='fbone' @@ -312,10 +314,10 @@ EOF echo ' shred -zu ~/login.txt' >> $rootdir/root/.bashrc END_MESSAGE1=$'Congratulations!' if [[ $VARIANT != "mesh" ]]; then - END_MESSAGE2=$'\nYour Freedombone system has now installed\n\nThe onion ssh service is at $SSH_ONION_HOSTNAME\n\nPress any key to reboot and begin using it' + END_MESSAGE2=$'\nYour system has now installed\n\nThe onion ssh service is at $SSH_ONION_HOSTNAME\n\nPress any key to reboot and begin using it' echo ' SSH_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_ssh/hostname)' >> $rootdir/root/.bashrc else - END_MESSAGE2=$'\nYour Freedombone system has now installed\n\nPress any key to reboot and begin using it' + END_MESSAGE2=$'\nYour system has now installed\n\nPress any key to reboot and begin using it' fi echo " dialog --title '$END_MESSAGE1' --msgbox \"$END_MESSAGE2\" 9 50" >> $rootdir/root/.bashrc echo ' reboot' >> $rootdir/root/.bashrc @@ -765,8 +767,8 @@ chroot "$rootdir" apt-get install -y locales locales-all debconf sed -i "s|#host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf chroot "$rootdir" /bin/bash -x <