-
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for the --interface flag of unset-static-ip script (#1719)
Related #1710. [As discussed in the issue](#1710 (comment)), this PR drops support for the `--interface` flag of the `unset-static-ip` script. Instead of allowing to selectively unset interface configurations, the `unset-static-ip` script now only allows to remove all/any custom IP configs. We didn’t find to have a need for the selective unsetting, and can therefore spare the complexity. ## Notes - I noticed we accidentally forgot to parse the `--help` flag, and we also forgot to document the `--help` and `--quiet` flags in the usage description. I’ve fixed both. - I dropped the “Examples” section from the help output, because without the `--interface` flag the usage seems trivial enough to me. - Using the `--interface` flag now produces an error, just in case someone relied on it. - The code for eliminating the marker sections is now the same as [the code in the `change-hostname` privileged script](https://github.com/tiny-pilot/tinypilot/blob/8e99d5a666df12d851b14dd4276e8b95ab958493/debian-pkg/opt/tinypilot-privileged/scripts/change-hostname#L62-L79) – except for the `dhcpcd_original` variable name. Both instances will later be replaced by a call to the [upcoming unified script](#1710). - Heads-up: this PR will (probably) conflict with tiny-pilot/tinypilot-pro#1175, as both touch the tail of the `unset-static-ip` script. It should be trivial to resolve this, though. <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1719"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a> --------- Co-authored-by: Jan Heuermann <[email protected]>
- Loading branch information
1 parent
52faec1
commit 2e21119
Showing
2 changed files
with
26 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters