Use sudo instead of setuidpid

This keeps the supplementary groups, most importantly video, which is
needed to access the video devices.
pull/229/head
Peter Johnson 2018-11-30 14:09:18 -08:00
parent 90e5ced278
commit d0c39e088b
No known key found for this signature in database
GPG Key ID: D39DD4DA7D41E329
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
sleep 1
cd /home/pi
exec pgrphack setuidgid pi /usr/local/bin/netconsoleServer -u ./runCamera
exec pgrphack sudo -u pi /usr/local/bin/netconsoleServer -u ./runCamera