2019-06-02 02:49:02 +00:00
|
|
|
#!/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
|
2020-11-21 00:35:40 +00:00
|
|
|
|
|
|
|
# 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
|