Skip to content
This repository was archived by the owner on Sep 14, 2025. It is now read-only.

Fix shell expansion on wifi password#17

Open
fabricioanciaes wants to merge 3 commits into
omacom-io:masterfrom
fabricioanciaes:master
Open

Fix shell expansion on wifi password#17
fabricioanciaes wants to merge 3 commits into
omacom-io:masterfrom
fabricioanciaes:master

Conversation

@fabricioanciaes

@fabricioanciaes fabricioanciaes commented Aug 30, 2025

Copy link
Copy Markdown

Passwords with $ weren't working due to shell expansion, not only that, they were completely crashing the installation on my end and with no feedback.

Simple example of shell expansion in action:

echo password$1234
password234

Added a gum prompt for password before passing the actual password to iwctl via --passphrase parameter

Also need help testing this properly as I'm having trouble recreating this on baremetal.

@fabricioanciaes
fabricioanciaes marked this pull request as ready for review August 30, 2025 06:59
@fabricioanciaes
fabricioanciaes marked this pull request as draft August 30, 2025 07:17
adds a gum prompt and passes the password via iwctl's --passphrase
@fabricioanciaes
fabricioanciaes marked this pull request as ready for review August 30, 2025 07:21
@dhh

dhh commented Aug 31, 2025

Copy link
Copy Markdown
Contributor

Think we need to detect if the ssid needs a password so we're not asking on open networks.

@fabricioanciaes

Copy link
Copy Markdown
Author

Think we need to detect if the ssid needs a password so we're not asking on open networks.

Now it connects to open networks without prompting for passwords, only prompts for password on secured wifi connections.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants