WRTManager.sh - adikbo/wrtmanager GitHub Wiki

First dialog requires root password to be provided. This password is passed by to the curr variable and used later.

Second dialog opens lista.txt file for edition. This file has the list of devices IP's to be logged. There should be one ip in the line without any stop sign. Probably the FQDN name should also work - not tested yet. Last line should not be ended with carrier return/new line sign (in other words: "Don't enter after last ip!). After the OK is pressed the output is written to the temp file. After the dialog closes, lista is changed with temp file.

Main menu. According to the procedure user want to perform, one of the choices should be selected. Current version has 3 options:

  1. Change SSID
  2. Change WiFi Password
  3. Change root Password

First option provides user another dialog for ssid to be entered. This ssid is collected in ssid variable and passed to the ssid.sh script. Second option uses two dialogs one after another. First dialog asks user for the SSID and second dialog for the Password. Both variables (ssid and psk) are passed to psk.sh script. This option after some modifications could also be used for setting new SSID with Password. Third option asks user for new root password and puts it into root variable which is passed to the root.sh script.

Another options could be added in same manner. New CHOICE variable, new case statement and corresponding script.

Each script is in while loop using the lista.txt as the closing statement.