mirror of
https://github.com/femtofox/femtofox.git
synced 2026-11-20 15:06:36 -05:00
Bug fixes in menus
This commit is contained in:
parent
e61125a964
commit
be21a52ce6
2 changed files with 9 additions and 5 deletions
|
|
@ -183,7 +183,7 @@ utilities() {
|
|||
case $option in
|
||||
1) femto-set-timezone.sh ;; # set timezone)
|
||||
2) # Kernel modules)
|
||||
dialog --title "$title" --msgbox "Kernel modules are loadable pieces of code that extend a Linux kernel's functionality without requiring a reboot. Common examples include device drivers, file systems, or system calls.\n\nThis tool will allow you to add pre-compiled modules to the Foxbuntu kernel.\n\nModules currently autostarting at boot:\n$(sed -n '6,$p' /etc/modules | sed ':a;N;$!ba;s/\n/, /g;s/, $//')" 16 65
|
||||
dialog --title "$title" --msgbox "Kernel modules are loadable pieces of code that extend a Linux kernel's functionality without requiring a reboot. Common examples include device drivers, file systems, or system calls.\n\nThis tool will allow you to add pre-compiled modules to the Foxbuntu kernel.\n\nModules currently autostarting at boot: $(modules=$(sed -n '6,$p' /etc/modules | sed ':a;N;$!ba;s/\n/, /g;s/, $//'); [ -z "$modules" ] && echo "none" || echo "$modules")\n\nCurrently active modules: $(lsmod | awk 'NR>1 {print $1}' | tr '\n' ' ')" 18 65
|
||||
femto-kernel-modules.sh
|
||||
;;
|
||||
3) femto-runonce.sh ;; # Re-run first-boot script)
|
||||
|
|
@ -251,10 +251,10 @@ set_lora_radio() {
|
|||
"AI Thinker ra-01sh")
|
||||
radio="sx1262_xtal"
|
||||
;;
|
||||
11)
|
||||
"none")
|
||||
radio="none"
|
||||
;;
|
||||
12)
|
||||
"Skip")
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
|
@ -317,7 +317,7 @@ meshtasticd_settings() {
|
|||
fi
|
||||
;;
|
||||
3)
|
||||
dialog --colors --title "LoRa radio" --msgbox "Currently configured LoRa radio:\n$(replace_colors "$(femto-meshtasticd-config.sh -k)")$([ -d /etc/meshtasticd/config.d ] && files=$(ls -d /etc/meshtasticd/config.d/* 2>/dev/null) && [ -n "$files" ] && echo "\n\nConfiguration files in use:\n$files" | paste -sd, -)" 10 55
|
||||
dialog --colors --title "LoRa radio" --msgbox "Currently configured LoRa radio:\n$(replace_colors "$(output=$(femto-meshtasticd-config.sh -k); [ -z "$output" ] && echo none || echo "$output")")$([ -d /etc/meshtasticd/config.d ] && files=$(ls -d /etc/meshtasticd/config.d/* 2>/dev/null) && [ -n "$files" ] && echo "\n\nConfiguration files in use:\n$files" | paste -sd, -)" 10 55
|
||||
;;
|
||||
4)
|
||||
set_lora_radio
|
||||
|
|
|
|||
|
|
@ -71,7 +71,11 @@ install() {
|
|||
chown -R femto $location #give ownership of installation directory to $user
|
||||
git config --global --add safe.directory $location # prevents git error when updating
|
||||
echo "Creating \`curses\` shortcut."
|
||||
echo -e "#!/bin/bash\n$launch" | sudo tee /usr/local/bin/curses > /dev/null
|
||||
echo -e "#!/bin/bash\n\
|
||||
export NCURSES_NO_UTF8_ACS=1\n\
|
||||
export TERM=xterm-256color\n\
|
||||
export LANG=C.UTF-8\n\
|
||||
$launch" | sudo tee /usr/local/bin/curses > /dev/null
|
||||
chmod +x /usr/local/bin/curses
|
||||
echo "user_message: To launch, run \`curses\`."
|
||||
exit 0 # should be `exit 1` if the installation failed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue