|
@@ -33,6 +33,8 @@ PROJECT_NAME='freedombone'
|
33
|
33
|
INSTALL_DIR=/root/build
|
34
|
34
|
COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
|
35
|
35
|
|
|
36
|
+PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}"
|
|
37
|
+
|
36
|
38
|
# username created by default within a debian image
|
37
|
39
|
GENERIC_IMAGE_USERNAME='fbone'
|
38
|
40
|
|
|
@@ -312,10 +314,10 @@ EOF
|
312
|
314
|
echo ' shred -zu ~/login.txt' >> $rootdir/root/.bashrc
|
313
|
315
|
END_MESSAGE1=$'Congratulations!'
|
314
|
316
|
if [[ $VARIANT != "mesh" ]]; then
|
315
|
|
- 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'
|
|
317
|
+ 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'
|
316
|
318
|
echo ' SSH_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_ssh/hostname)' >> $rootdir/root/.bashrc
|
317
|
319
|
else
|
318
|
|
- END_MESSAGE2=$'\nYour Freedombone system has now installed\n\nPress any key to reboot and begin using it'
|
|
320
|
+ END_MESSAGE2=$'\nYour system has now installed\n\nPress any key to reboot and begin using it'
|
319
|
321
|
fi
|
320
|
322
|
echo " dialog --title '$END_MESSAGE1' --msgbox \"$END_MESSAGE2\" 9 50" >> $rootdir/root/.bashrc
|
321
|
323
|
echo ' reboot' >> $rootdir/root/.bashrc
|
|
@@ -765,8 +767,8 @@ chroot "$rootdir" apt-get install -y locales locales-all debconf
|
765
|
767
|
sed -i "s|#host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
|
766
|
768
|
|
767
|
769
|
chroot "$rootdir" /bin/bash -x <<EOF
|
768
|
|
-git clone https://github.com/bashrc/freedombone /root/freedombone
|
769
|
|
-cd /root/freedombone
|
|
770
|
+git clone $PROJECT_REPO /root/$PROJECT_NAME
|
|
771
|
+cd /root/$PROJECT_NAME
|
770
|
772
|
make install
|
771
|
773
|
EOF
|
772
|
774
|
|