pmaports/main/postmarketos-base
Oliver Smith 17292f4f5e
main/postmarketos-base: fix wpa_supplicant config (!365)
Fix wifi on htc-ace by properly setting nl80211 before wext.

/etc/conf.d/wpa_supplicant is supposed to get modified twice with the
current code in the post-install file. The first one was patched
recently to set nl80211 before wext, but that change does not work in
practice, for two reasons:

1. The code block does not even get executed, because apk reports that
   /etc/conf.d/wpa_supplicant was already modified (by a package that
   was installed before, in its post-install script? I could not find
   out which one does that though).
2. Even if it worked, the second code block would revert the change and
   put wext before nl80211 again.

Fix this by removing the first code block, and changing the order in the
second one. Make it easier to catch such errors in the future, by
printing, which files get modified, or get skipped. Set "#!/bin/sh -e",
so the script can not fail silently.

When doing pmbootstrap -y zap and then pmbootstrap install, the output
looks like this:

(141/151) Installing postmarketos-base (3-r26)
Executing postmarketos-base-3-r26.post-install
- Modifying: /etc/fstab
- Modifying: /etc/issue
- Modifying: /etc/motd
- Modifying: /etc/conf.d/syslog
- Modifying: /etc/conf.d/wpa_supplicant
- Modifying: /etc/sudoers
- Modifying: /etc/chrony/chrony.conf
2019-06-30 02:00:08 +02:00
..
swapfile Close #574: swap file support/encrypted swap on rx51 (#585) 2017-09-20 18:32:19 +00:00
50-firmware.rules Close #147: postmarketos-base: added udev rule / firmwareload.sh (#427) 2017-08-20 12:49:55 +00:00
APKBUILD main/postmarketos-base: fix wpa_supplicant config (!365) 2019-06-30 02:00:08 +02:00
deferred-initcalls.init postmarketos-base: add deferred-initcalls openrc service (!338) 2019-05-02 21:07:31 +00:00
devmappings.initd pmos-base: skip failures in devmappings.initd (!164) 2019-01-22 07:30:44 +01:00
firmwareload.sh Close #147: postmarketos-base: added udev rule / firmwareload.sh (#427) 2017-08-20 12:49:55 +00:00
networkmanager.conf main/postmarketos-base: ignore confusing p2p0 interface (!344) 2019-05-14 22:24:26 +02:00
postmarketos-base.post-install main/postmarketos-base: fix wpa_supplicant config (!365) 2019-06-30 02:00:08 +02:00