pmaports/device/testing/firmware-samsung-manta/firmware-samsung-manta.post-install
Pablo Correa Gómez 264d171a88
testing/firmware-samsung-manta: check that /etc/conf.d/wpa_supplicant exists (MR 3909)
Not all UIs depend on it

Fixes #1971

[ci:skip-build] already built successfully in CI
2023-02-27 09:38:54 -08:00

10 lines
433 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 [ -f /etc/conf.d/wpa_supplicant ] && ! grep -q "i wlan0" /etc/conf.d/wpa_supplicant ; then
sed -i 's/-Dnl80211,wext/-Dnl80211,wext -i wlan0/' /etc/conf.d/wpa_supplicant
fi