From ccd8cc47c836e1fdf08bc2415ec56c24ff406e35 Mon Sep 17 00:00:00 2001 From: nagumii Date: Tue, 31 Dec 2024 16:26:25 +0200 Subject: [PATCH] more femto-config work --- .../usr/local/bin/femto-meshtasticd-config.sh | 2 +- .../usr/local/bin/femtofox-config | 11 +++++++---- .../local/bin/{settime.sh => settime.sh.deprecated} | 0 3 files changed, 8 insertions(+), 5 deletions(-) rename foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/{settime.sh => settime.sh.deprecated} (100%) mode change 100755 => 100644 diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-meshtasticd-config.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-meshtasticd-config.sh index b1feadf..0f51ddd 100644 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-meshtasticd-config.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-meshtasticd-config.sh @@ -85,7 +85,7 @@ while getopts ":hgkl:q:va:cedur" opt; do apt install --only-upgrade meshtasticd ;; r) # Option -r (uninstall meshtasticd) - + apt remove meshtasticd ;; \?) # Invalid option echo "Invalid option: -$OPTARG" diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femtofox-config b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femtofox-config index 72bf317..854c495 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femtofox-config +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femtofox-config @@ -90,7 +90,7 @@ misc_settings() { local option="" option=$(dialog --menu "Misc Settings" 15 40 4 \ 1 "Set system timezone" \ - 2 "Add ham radio support" \ + 2 "Ham radio support" \ 3 "blah" \ 4 "Back to Main Menu" 3>&1 1>&2 2>&3) @@ -138,8 +138,11 @@ SAA7706H Car Radio DSP\n\ TEF6862 Car Radio Enhanced Selectivity Tuner\n\ Texas Instruments WL1273 I2C FM Radio\n\ Renesas Digital Radio Interface (DRIF)" 20 65 - dialog --title "$title" --msgbox "To add support, kernel modules for all these will be copied to from \`DIRECTORY\` to \`/lib/modules/5.10.160/\`,\ - then \`depmod -a 5.10.160\` will be run.\nAfter installation, many redundant network interfaces will appear." 10 50 + dialog --title "$title" --msgbox "To add support, kernel modules for all these will be copied to \`/lib/modules/5.10.160/\`,\ +then \`depmod\` will be run. To remove support, those modules will be deleted.\n\nAfter installation, many redundant network interfaces will appear." 11 50 + #add code to choose add or remove + cp /oem/usr/ko/ham/* /lib/modules/5.10.160/ + depmod -a 5.10.160 ;; 3) dialog --msgbox "Node info retrieved successfully!" 8 40 @@ -225,7 +228,7 @@ meshtasticd_settings() { local title="Meshtasticd Settings" while true; do local option="" - option=$(dialog --menu "$title" 17 50 4 \ + option=$(dialog --menu "$title" 19 50 4 \ 1 "Get current configuration URL & QR code" \ 2 "Set new configuration URL" \ 3 "Get current lora radio selection" \ diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/settime.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/settime.sh.deprecated old mode 100755 new mode 100644 similarity index 100% rename from foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/settime.sh rename to foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/settime.sh.deprecated