Age | Commit message (Collapse) | Author |
|
When a essid has the 'SSID List' extended capibility, the `find_essids`
function will not return that ssid. That's because the `$1 ~ /SSID/` awk
pattern will match that line. The ssid variable then is set to an empty
value because there is no `:` (field separate) in that line, so `$2` is
empty.
The terminator of the statemachine then skips this essid, because it
checks if the `ssid` variable is not empty.
We can fix this by making sure the field ends with `SSID`, which is not
the case with the `SSID List` line.
Partial output of `iw dev wlan0 scan`:
```
Extended capabilities:
* Extended Channel Switching
* TFS
* WNM-Sleep Mode
* TIM Broadcast
* BSS Transition
* SSID List
* Operating Mode Notification
* 6
* Max Number Of MSDUs In A-MSDU is unlimited
```
Reported-by: invoked
Fixes: #10546
|
|
|
|
|
|
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10542
|
|
also fix so we can join networks without PSK
filter out hidden (\x00) SSIDs
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10518
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10475
|
|
Some shells may apply word splitting after expanding variable in
`local a=$1`. I know just about yash, but since `local` is supposed to
be a builtin *command*, the "correct" behaviour of common shells is
actually a special case for `local` - it doesn't apply for other
commands. See https://osdn.net/projects/yash/ticket/46041.
|
|
'echo -n' and 'echo -e' are not portable, not all commonly used shells
support both of them (in the same way). 'echo -e' is not even defined
in POSIX.
https://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html:
> New applications are encouraged to use printf instead of echo.
> ...
> Conforming applications that wish to do prompting without <newline>s
> or that could possibly be expecting to echo a -n, should use the
> printf utility derived from the Ninth Edition system.
|
|
The authentication suites may be a list. Check if PSK is a part of the
list instead of checking that it is the only authentication suite.
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10518
|
|
|
|
The ifupdown-ng implementations are apparently just stubs.
Partially reverts commit e9c6302edf1e (setup-interface: avoid install
bridge/bonding with ifupdown-ng)
|
|
We don't need to install bridge or bonding packages with ifupdown-ng.
|
|
Don't install vlan package if ifupdown-ng package is used.
Add tests for this.
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10495
|
|
test that vlan gets installed
|
|
this fixes the tests so we dont mix with the hosts network interfaces.
|
|
This makes it possible to test the scripts
|
|
exit with success with -h
send usage text to stderr when invalid option is passed
|
|
wpa_passphrase will add a comment of the password in clear text. Strip
this.
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10509
|
|
Commit ec0c7a7 changed the sed expression for PREFIX injection but
forgot to update the scripts.
|
|
this doesn't work properly if someone changes hostname after install.
ifupdown-ng supports this automatically, and if someone manually
switches to ifupdown then they can manually add the hostname line.
|
|
|
|
Fixes #10480.
Fixes #10484.
|
|
|
|
|
|
- fix bug in find_essids
- use wpa_passphrase to create network config for wpa_supplicant with
PSK
- handle case where invalid SSID was entered
- do not echo the wifi password
|
|
if wifi setup fails, return instead of recursively call
prompt_for_interfaces
|
|
instead of simply start the process, enable the service so it starts on
reboots
|
|
use / as separator in the interal list as it is not allowed to be used
in SSIDs
also fix a bashism
|
|
this option will configure dhcp on first interface found which is "up"
|
|
fixes #7260
|
|
|
|
|
|
|
|
|
|
|
|
Non-breaking space (0xc2 0xa0) was added by mistake. Replace it with a
normal space.
|
|
|
|
|
|
|
|
|
|
ref #1624
|
|
ref #1404
|
|
Handle case when user enters vlan on top of bond (i.e bond0.8)
In this case we first set up the bond interface with default address
to "none" and then afterwards we set up the vlan interface.
|
|
|
|
|
|
Tanks to nangel
|
|
|
|
|
|
Useful for bonding and bridges
|
|
|
|
|