Copied from the cm4io package Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6820