Created
August 31, 2017 18:02
-
-
Save dlech/90f4f0299ca86e7e7f214e7d00ff28bf to your computer and use it in GitHub Desktop.
console-runner for RPi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Console runner for pi user | |
[Service] | |
Type=simple | |
ExecStartPre=+/bin/chown pi /dev/%i | |
ExecStart=/usr/bin/conrun-server | |
ExecStopPost=+/bin/chown root /dev/%i | |
User=pi | |
StandardInput=tty-fail | |
StandardOutput=tty | |
StandardError=journal | |
TTYPath=/dev/%i | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE busconfig PUBLIC | |
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" | |
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | |
<busconfig> | |
<policy user="pi"> | |
<allow own="org.ev3dev.ConsoleRunner"/> | |
<allow send_type="method_call"/> | |
</policy> | |
</busconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment