Artix Linux Forum

Init systems => S6 => Topic started by: Lazerbeak12345 on 17 May 2024, 22:26:32

Title: adding native doas support to /usr/bin/s6-status
Post by: Lazerbeak12345 on 17 May 2024, 22:26:32
Hey there! I noticed that /usr/bin/s6-status checks for sudo, and if it's not present uses su. I've configured my system with doas, and I was wondering if the maintainers would be willing to add doas support.

It should be about two or three lines of code, something like this:

Code: [Select]
elif [ -f /usr/bin/doas ]; then
    # shellcheck disable=????
    exec doas -- "$0" ${OPTS}

I haven't actually tested this, and my workaround is an AUR package that provides sudo as a bash wrapper around doas. It's not supported officially, however, since it's in the AUR.

Thanks!