also use setserial on default device
This commit is contained in:
Executable → Regular
+4
-1
@@ -34,7 +34,10 @@ start_instance () {
|
|||||||
shift
|
shift
|
||||||
suffix="${opts#EBUSD_OPTS}"
|
suffix="${opts#EBUSD_OPTS}"
|
||||||
dev=`echo " ${!opts}"|sed -e 's#^.* -d ##' -e 's# -.*$##'`
|
dev=`echo " ${!opts}"|sed -e 's#^.* -d ##' -e 's# -.*$##'`
|
||||||
if [ -n "$dev" ] && [ "${dev:0:5}" == '/dev/' ] && [ -c "$dev" ] && [ -x /bin/setserial ]; then
|
if [ -z "$dev" ]; then
|
||||||
|
dev=/dev/ttyUSB0
|
||||||
|
fi
|
||||||
|
if [ "${dev:0:5}" == '/dev/' ] && [ -c "$dev" ] && [ -x /bin/setserial ]; then
|
||||||
log_daemon_msg "Setting low latency for ebusd${suffix} device"
|
log_daemon_msg "Setting low latency for ebusd${suffix} device"
|
||||||
/bin/setserial "$dev" low_latency
|
/bin/setserial "$dev" low_latency
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
|
|||||||
Reference in New Issue
Block a user