731ee8b18b
Now runs as unprivileged user Improved startup script
11 lines
278 B
Bash
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
|