Skip to content
Snippets Groups Projects
Verified Commit ec5b59eb authored by Newbyte's avatar Newbyte :snowflake:
Browse files

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

parent 5fce7431
Branches
No related tags found
No related merge requests found
Pipeline #207205 passed
......@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment