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:
parent
5fce743177
commit
ec5b59eb77
1 changed files with 8 additions and 0 deletions
|
@ -72,4 +72,12 @@ if grep -qr $POSTMARKETOS_WALLPAPER_PATH \
|
||||||
exit_code=1
|
exit_code=1
|
||||||
fi
|
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"
|
exit "$exit_code"
|
||||||
|
|
Loading…
Reference in a new issue