Expand description
§LPU WiFi Manager
llogin is a command-line tool for managing LPU WiFi connections.
This tool provides several commands:
--helpor-h: Show the help message.--versionor-v: Show the version of the program.--accountor-a: Perform LPU login with the provided account ID.--listor-l: List all stored account IDs.
If no command is provided, the tool will prompt the user for an account ID and perform LPU login.
The tool checks if the user is connected to LPU WiFi before performing any operations. If the user is not connected to LPU WiFi, the tool will exit with an error message.
The tool stores LPU credentials in environment variables and writes them to a file. The file is updated every time the user stores new credentials.
The tool uses the nmcli command to check the WiFi connection and the curl command to send login requests.
Functions§
- Checks if the user is connected to LPU WiFi.
- Lists all stored account IDs.
- main 🔒The main function of the program.
- Performs LPU login.
- Prompts the user for an account ID.
- Shows the help message.
- Shows the version of the program.
- Stores LPU credentials.