steptail.com

Does expecting the unexpected make the unexpected the expected?

User Tools

Site Tools


guides:virtual_modem:script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
guides:virtual_modem:script [2022-12-20 06:56]
omolini
guides:virtual_modem:script [2022-12-21 23:03]
omolini
Line 167: Line 167:
  
 sendtty "​\n"​ sendtty "​\n"​
-sendtty "VMODEM - Virtual Modem bootstrap for PPP link v$vmodver\n"​+sendtty "​Virtual Modem bootstrap for PPP link v$vmodver\n"​
 sendtty "​Connection speed set to $baud baud\n"​ sendtty "​Connection speed set to $baud baud\n"​
 sendtty "​\n"​ sendtty "​\n"​
-sendtty "TYPE HELP FOR COMMANDS\n"+sendtty "​TYPE ​\"HELP\" ​FOR COMMAND REFERENCE.\n"
 sendtty "​READY.\n"​ sendtty "​READY.\n"​
  
Line 480: Line 480:
         sendtty "​============\n"​         sendtty "​============\n"​
         sendtty "1. Change Wireless Network settings\n"​         sendtty "1. Change Wireless Network settings\n"​
-        sendtty "2. Exit system setup\n"+        sendtty "2. Exit\n"​
         sendtty "Enter your selection: "         sendtty "Enter your selection: "
         # Read user input         # Read user input
Line 523: Line 523:
             elif [[ "​$selection"​ == "​4"​ ]]; then             elif [[ "​$selection"​ == "​4"​ ]]; then
               status=$(sudo wpa_cli -i wlan0 status)               status=$(sudo wpa_cli -i wlan0 status)
 +              sendtty "​\n"​
 +              sendtty "Wi-fi connection status\n"​
 +              sendtty "​=======================\n"​
               sendtty "​$status"​               sendtty "​$status"​
 +              sendtty "​\n"​
             # Exit             # Exit
             elif [[ "​$selection"​ == "​5"​ ]]; then             elif [[ "​$selection"​ == "​5"​ ]]; then
Line 534: Line 538:
         # Exit         # Exit
         elif [[ "​$selection"​ == "​2"​ ]]; then         elif [[ "​$selection"​ == "​2"​ ]]; then
-          sendtty "Exit system ​setup\n"​+          sendtty "Exited ​setup\n"​
           sendtty "​READY.\n"​           sendtty "​READY.\n"​
           break           break
         # Invalid selection         # Invalid selection
         else         else
-          ​echo "​Invalid selection. Please try again."​+          ​sendtty ​"​Invalid selection. Please try again.\n"
         fi         fi
       done       done
Line 663: Line 667:
 sendtty "​\n"​ sendtty "​\n"​
 sendtty "​Please enter your name: \n" sendtty "​Please enter your name: \n"
-read -e -p "User? " ​username+readtty ​username
 sendtty "​\n"​ sendtty "​\n"​
 sendtty "​Hello,​ $username!\n"​ sendtty "​Hello,​ $username!\n"​
guides/virtual_modem/script.txt · Last modified: 2022-12-28 03:32 by omolini