Skip to main content
Topic: adding native doas support to /usr/bin/s6-status (Read 219 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

adding native doas support to /usr/bin/s6-status

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!