Crate llogin

source ·
Expand description

§LPU WiFi Manager

llogin is a command-line tool for managing LPU WiFi connections.

This tool provides several commands:

  • --help or -h: Show the help message.
  • --version or -v: Show the version of the program.
  • --account or -a: Perform LPU login with the provided account ID.
  • --list or -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§