8bc2cacd9f
* Mainline kernel: enable installation of Wi-Fi firmware. Now that we have Wi-Fi support in mainline kernel, use it. * Mainline kernel: adjust description of mainline kernel subpackage; we still cannot recommend it over downstream, but it is not so experimental anymore. * Downstream kernel: add workaround for broken SSH: use dropbear instead of openssh server. See #808 https://gitlab.com/postmarketOS/pmaports/-/issues/808
15 lines
615 B
Bash
15 lines
615 B
Bash
#!/bin/sh
|
|
|
|
# Enable autostart of deferred initcalls (needed to bring Wi-Fi online)
|
|
rc-update -q add deferred-initcalls sysinit
|
|
|
|
# Explicitly specify wlan device. Without this, p2p0 will be
|
|
# selected automatically instead of wlan0, and Wi-Fi will not work.
|
|
if ! grep -q "i wlan0" /etc/conf.d/wpa_supplicant ; then
|
|
sed -i 's/-Dwext,nl80211/-Dwext,nl80211 -i wlan0/' /etc/conf.d/wpa_supplicant
|
|
fi
|
|
|
|
# Replace sshd with dropbear (workaround for sshd failure on downstream
|
|
# kernels, see issue #808 https://gitlab.com/postmarketOS/pmaports/-/issues/808 )
|
|
rc-update -q del sshd default
|
|
rc-update -q add dropbear default
|