contrib/lirc/pre-install
Alan Mizrahi 731ee8b18b lirc: Fixed build issues with recent systems
Now runs as unprivileged user
Improved startup script
2013-03-11 23:38:53 +09:00

11 lines
278 B
Bash

#!/bin/sh
# check for lirc group or add one
getent group lirc || /usr/sbin/groupadd -g 112 lirc
# check for lirc user or add one
getent passwd lirc || /usr/sbin/useradd -g lirc -u 112 -d /var/empty -s /bin/false -c "LIRC User" lirc
# lock the account
/usr/bin/passwd -l lirc