Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netman: update module description #21664

Merged
merged 7 commits into from
Jun 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions src/systemcmds/netman/netman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,21 @@ static void usage(const char *reason)
memory. On boot the `update` option will be run. If a network configuration
does not exist. The default setting will be saved in non-volatile and the
system rebooted.
On Subsequent boots, the `update` option will check for the existence of
`net.cfg` in the root of the SD Card. It will saves the network settings

### update
On subsequent boots, the `update` option will check for the existence of
mrpollo marked this conversation as resolved.
Show resolved Hide resolved
`net.cfg` in the root of the SD Card. It will saves the network settings
from `net.cfg` in non-volatile memory, delete the file and reboot the system.

The `save` option will `net.cfg` on the SD Card. Use this to edit the settings.
The `show` option will display the network settings to the console.
### save
The `save` option will write settings to the `net.cfg` file on the SD Card filesystem.
mrpollo marked this conversation as resolved.
Show resolved Hide resolved
Use this to edit the settings. The main difference with `update` is that
mrpollo marked this conversation as resolved.
Show resolved Hide resolved
save does not immediately apply the network settings; it depends on the
user rebooting; at this point, the system will load the settings from the file,
mrpollo marked this conversation as resolved.
Show resolved Hide resolved
and apply the network configuration.
mrpollo marked this conversation as resolved.
Show resolved Hide resolved

### show
The `show` option will display the network settings in `net.cfg` to the console.

### Examples
$ netman save # Save the parameters to the SD card.
Expand Down