mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Linux: run socat as user not as root
If sudo is used to run socat the tty cannot be opened by a regular user Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
if [ ! -c /tmp/ttyS0 ] || [ ! -c /tmp/ttyS1 ]
|
if [ ! -c /tmp/ttyS0 ] || [ ! -c /tmp/ttyS1 ]
|
||||||
then
|
then
|
||||||
echo "Need to create /tmp/ttyS[01]"
|
echo "Need to create /tmp/ttyS[01]"
|
||||||
echo "sudo socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1"
|
echo "socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user