CI: check for "before wpa_supplicant" in OpenRC service files (MR 4769)

See https://gitlab.com/postmarketOS/pmaports/-/merge_requests/4564
This commit is contained in:
Stefan Hansson 2024-01-28 19:26:51 +01:00
parent 5fce743177
commit ec5b59eb77
No known key found for this signature in database
GPG key ID: 8A700086A9FE41FD

View file

@ -72,4 +72,12 @@ if grep -qr $POSTMARKETOS_WALLPAPER_PATH \
exit_code=1
fi
OPENRC_SERVICE_FILES=$(find . -name '*.initd')
# shellcheck disable=SC2086
if grep -q 'before wpa_supplicant' $OPENRC_SERVICE_FILES; then
echo "ERROR: Please use 'before wlan' in OpenRC service files! This ensures compatibility with both wpa_supplicant and iwd."
grep --color=always 'before wpa_supplicant' $OPENRC_SERVICE_FILES
exit_code=1
fi
exit "$exit_code"