Use sudo instead of setuidpid

This keeps the supplementary groups, most importantly video, which is
needed to access the video devices.
This commit is contained in:
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

View File

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