retry remove minimum password length

This commit is contained in:
nagumii 2024-12-31 00:56:10 +02:00
parent 27de6f3471
commit 0dd82d34fc
3 changed files with 43 additions and 23 deletions

View file

@ -1,3 +1,4 @@
Ubuntu 22.04.3 LTS \n \l
[username:password] root:root femto:femto (default)
[username:password] root:root femto:femto (default)

View file

@ -22,7 +22,7 @@
# pam-auth-update(8) for details.
# here are the per-package modules (the "Primary" block)
password [success=1 default=ignore] pam_unix.so obscure yescrypt minlen=0
password [success=1 default=ignore] pam_unix.so yescrypt minlen=0
# here's the fallback if no module succeeds
password requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;

View file

@ -85,7 +85,7 @@ For more details, enter \`iwconfig\`.
# Function to handle misc settings
misc_settings() {
local title="Wifi Settings"
local title="Misc Settings"
while true; do
local option=""
option=$(dialog --menu "Misc Settings" 15 40 4 \
@ -104,23 +104,42 @@ misc_settings() {
femto-set-timezone.sh
;;
2)
dialog --title "$title" --msgbox "Amateur radio support can be added in kernel for:\
CONFIG_HAMRADIO\
CONFIG_AX25\
CONFIG_AX25_DAMA_SLAVE\
CONFIG_NETROM\
CONFIG_ROSE\
CONFIG_MKISS\
CONFIG_6PACK\
CONFIG_BPQETHER\
CONFIG_BAYCOM_SER_FDX\
CONFIG_BAYCOM_SER_HDX\
CONFIG_YAM\
CONFIG_MEDIA_RADIO_SUPPORT\
CONFIG_MEDIA_SDR_SUPPORT\
CONFIG_MEDIA_PLATFORM_SUPPORT\
CONFIG_SDR_PLATFORM_DRIVERS\
CONFIG_SDR_MAX2175" 10 60
dialog --title "$title" --msgbox "Amateur radio support can be added in kernel for:\n\n\
Amateur Radio AX.25 Level 2 protocol\n\
AX.25 DAMA Slave support\n\
Amateur Radio NET/ROM protocol\n\
Amateur Radio X.25 PLP (Rose)\n\
Serial port KISS driver\n\
Serial port 6PACK driver\n\
BPQ Ethernet driver\n\
BAYCOM ser12 fullduplex driver for AX.25\n\
BAYCOM ser12 halfduplex driver for AX.25\n\
YAM driver for AX.25\n\
AM/FM Radio receivers/transmitters\n\
Software defined radio (SDR)\n\
Maxim 2175 RF to Bits tuner\n\
Silicon Labs Si470x FM Radio Receiver support\n\
Silicon Labs Si470x FM Radio Receiver support with USB\n\
Silicon Labs Si470x FM Radio Receiver support with I2C\n\
Silicon Labs Si4713 FM Radio with RDS Transmitter support\n\
Silicon Labs Si4713 FM Radio Transmitter support with USB\n\
Silicon Labs Si4713 FM Radio Transmitter support with I2C\n\
Silicon Labs Si4713 FM Radio Transmitter support\n\
AverMedia MR 800 USB FM radio support\n\
D-Link/GemTek USB FM radio support\n\
Guillemot MAXI Radio FM 2000 radio\n\
Griffin radioSHARK USB radio receiver\n\
Griffin radioSHARK2 USB radio receiver\n\
Keene FM Transmitter USB support\n\
Thanko's Raremono AM/FM/SW radio support\n\
Masterkit MA901 USB FM radio support\n\
TEA5764 I2C FM radio support\n\
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
;;
3)
dialog --msgbox "Node info retrieved successfully!" 8 40
@ -134,7 +153,7 @@ CONFIG_SDR_PLATFORM_DRIVERS\
#set lora radio
set_lora_radio() {
while true; do
while true; do
local option=""
option=$(dialog --menu "Misc Settings" 0 0 10 \
1 "ebyte-e22-900m30s" \
@ -148,7 +167,7 @@ set_lora_radio() {
9 "sx1262_xtal" \
10 "lr1121_tcxo" \
11 "none (simulated radio)" \
12 "Back to Main Menu" 3>&1 1>&2 2>&3)
12 "Back to Main Menu" 3>&1 1>&2 2>&3)
exit_status=$? # This line checks the exit status of the dialog command
if [ $exit_status -ne 0 ]; then # Exit the loop if the user selects "Cancel" or closes the dialog
@ -218,7 +237,7 @@ meshtasticd_settings() {
9 "Disable legacy admin channel" \
10 "Upgrade Meshtasticd" \
11 "Uninstall Meshtasticd" \
12 "Back to Main Menu" 3>&1 1>&2 2>&3)
12 "Back to Main Menu" 3>&1 1>&2 2>&3)
exit_status=$? # This line checks the exit status of the dialog command
if [ $exit_status -ne 0 ]; then # Exit the loop if the user selects "Cancel" or closes the dialog