pmaports/device/testing/device-samsung-a6lte/device-samsung-a6lte.post-install
Sergey Lisov b11e24701a
device-samsung-a6lte: hack around a WiFi bug in the vendor kernel (MR 3823)
If the wlan0 interface is rfkilled down on boot, WiFi won't work until reboot.
It seems that quickly ifconfig'ing wlan0 up and down in sysinit is enough to work around the bug.

[ci:skip-build] already built successfully in CI
2023-02-10 14:09:03 -08:00

9 lines
213 B
Bash

#!/bin/sh
# Create mount point and /efs mount point in fstab
if ! grep -q /efs /etc/fstab; then
mkdir -p /efs
echo "/dev/disk/by-partlabel/EFS /efs auto ro 0 0" >> /etc/fstab
fi
rc-update add wlan0-up sysinit