From e3ba27709db487501ad30757a5797b6e557363e1 Mon Sep 17 00:00:00 2001 From: nagumii Date: Tue, 7 Jan 2025 22:50:44 +0200 Subject: [PATCH] tiny fix for tc2-bbs installer --- .../usr/local/bin/femto-install-wizard.sh | 7 ++----- .../rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh | 7 +++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-install-wizard.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-install-wizard.sh index 861603c..fcd98e7 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-install-wizard.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-install-wizard.sh @@ -36,11 +36,8 @@ wizard() { if [ $? -eq 0 ]; then #unless cancel/no newurl=$(dialog --title "Meshtastic URL" --cancel-label "Skip" --inputbox "New Meshtasticd URL (SHIFT+INS to paste):" 8 50 3>&1 1>&2 2>&3) if [ -n "$newurl" ]; then #if a URL was entered - dialog --title "$title" --yesno "New Meshtasticd URL:\n$newurl\n\nConfirm?" 15 60 - if [ $? -eq 0 ]; then #unless cancel/no - femto-meshtasticd-config.sh -q "$newurl" - pause - fi + femto-meshtasticd-config.sh -q "$newurl" + pause fi femto-config -l diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh index 82d7468..26527f9 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh @@ -102,6 +102,13 @@ tc2_bbs() { # Install TC²BBS cp mesh-bbs.service /etc/systemd/system/ sudo systemctl enable mesh-bbs.service sudo systemctl restart mesh-bbs.service + + # for whatever reason, this is necessary + sleep 5 + sudo systemctl restart mesh-bbs + + echo -e "\nPress any key to continue..." + read -n 1 -s -r dialog --title "$software" --msgbox "\nInstallation complete." 8 50 }