summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
AgeCommit message (Collapse)Author
2023-01-30setup-interfaces: find essids when SSID List capability presentKevin Daudt
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
2023-01-25setup-interfaces: add tests for autoNatanael Copa
2023-01-24setup-*: use fake apk instead of $MOCK apkNatanael Copa
2022-11-21setup-interfaces: use 'none' to leave network unmodifiedNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10542
2022-11-15setup-interfaces: use iw instead of wireless-toolsNatanael Copa
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
2022-11-06always quote vars in 'local' assignmentJakub Jirutka
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.
2022-11-05replace 'echo -n' and 'echo -e' with printfJakub Jirutka
'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.
2022-07-13setup-interfaces: allow wifi networks that has more than PSKNatanael Copa
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
2022-07-13setup-interfaces: add test for interactive wifi setupNatanael Copa
2022-07-06setup-interfaces: install bonding/bridge pkgsNatanael Copa
The ifupdown-ng implementations are apparently just stubs. Partially reverts commit e9c6302edf1e (setup-interface: avoid install bridge/bonding with ifupdown-ng)
2022-07-05setup-interface: avoid install bridge/bonding with ifupdown-ngNatanael Copa
We don't need to install bridge or bonding packages with ifupdown-ng.
2022-07-05setup-interfaces: don't install legacy vlan packageNatanael Copa
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
2022-07-05setup-interfaces: mock apk add and test that vlan gets installedNatanael Copa
test that vlan gets installed
2022-07-01setup-interfaces: use fake /sys/class/net for testingNatanael Copa
this fixes the tests so we dont mix with the hosts network interfaces.
2022-05-23setup-{acf,interfaces}: use rc-serivce instead of /etc/init.dNatanael Copa
This makes it possible to test the scripts
2022-05-12setup-inerfaces: fix usage, make testableNatanael Copa
exit with success with -h send usage text to stderr when invalid option is passed
2022-04-19setup-interfaces: strip comment of wifi passwordNatanael Copa
wpa_passphrase will add a comment of the password in clear text. Strip this. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10509
2022-03-16fix PREFIX in *.inNick Hanley
Commit ec0c7a7 changed the sed expression for PREFIX injection but forgot to update the scripts.
2021-11-16setup-interfaces: don't add hostname for dhcp (fixes #12886)Alex Xu (Hello71)
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.
2021-11-16setup-interfaces: Document all flagsLukas Bestle
2021-11-16setup-interfaces: New -r flag to restart serviceLukas Bestle
Fixes #10480. Fixes #10484.
2021-01-08setup-interfaces: use ask_yesnoNatanael Copa
2021-01-06Fix WPA supplicant's key_mgmt for open networks.Gentooman
2021-01-06setup-interfaces: refactor wifi setupNatanael Copa
- 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
2021-01-06setup-interfaces: fix wifi error handlingNatanael Copa
if wifi setup fails, return instead of recursively call prompt_for_interfaces
2021-01-06setup-interfaces: start wpa_supplicant serviceNatanael Copa
instead of simply start the process, enable the service so it starts on reboots
2021-01-06setup-interfaces: make ssid list prettierNatanael Copa
use / as separator in the interal list as it is not allowed to be used in SSIDs also fix a bashism
2018-06-13setup-interfaces: add -a option for auto setupNatanael Copa
this option will configure dhcp on first interface found which is "up"
2017-05-23setup-interfaces: allow spaces in ssid and pskCarlo Landmeter
fixes #7260
2016-11-02indent heredocs and replace echos with heredoc where appropriateJakub Jirutka
2016-11-02replace deprecated `...` syntax with $(...) in shell scriptsJakub Jirutka
2016-11-02fix mixed tabs & spaces and surplus empty lines at EOFJakub Jirutka
2016-06-14setup-interfaces: fix wifi setupNatanael Copa
2016-04-05setup-interfaces: add limited support for configuring wireless interfacesLeonardo Arena
2015-05-06setup-interfaces: replace non-breaking space with normal spaceNatanael Copa
Non-breaking space (0xc2 0xa0) was added by mistake. Replace it with a normal space.
2015-05-06setup-interfaces: do not configure lo on LXCNatanael Copa
2014-04-23setup-interfaces: remove -p option and fix whitespace damageNatanael Copa
2014-04-23fix permissionsNatanael Copa
2013-07-03various: use long-form apk optionsDubiousjim
2013-03-01setup-interfaces: fix vlan-raw-deviceNatanael Copa
ref #1624
2012-12-21setup-interfaces: fix ip: can't find device 'eth1.3' messageNatanael Copa
ref #1404
2012-06-21setup-interfaces: allow setting up vlans on top of bondingNatanael Copa
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.
2012-06-20setup-interfaces: fix setting up bridge for xen dom0Natanael Copa
2012-06-20setup-interfaces: do not ask to bridge bridge interfacesNatanael Copa
2012-03-23setup-interfaces: improve help textsNatanael Copa
Tanks to nangel
2012-03-23setup-interfaces: add support for vlansNatanael Copa
2012-03-22setup-interfaces: install packages for bonding and/or bridge if neededNatanael Copa
2012-03-22setup-interfaces: allow 'manual' interfaces without ip addrNatanael Copa
Useful for bonding and bridges
2012-03-22setup-interfaces: initial bonding supportNatanael Copa
2012-03-22setup-interfaces: be more verbose on what ports are already added to bridgeNatanael Copa