removed setserial dependency again as ebusd sets the low latency flag now itself
This commit is contained in:
Executable → Regular
+1
-10
@@ -29,19 +29,10 @@ instance="EBUSD_OPTS$2"
|
||||
instance=${!instance}
|
||||
|
||||
start_instance () {
|
||||
local opts suffix dev
|
||||
local opts suffix
|
||||
opts=$1
|
||||
shift
|
||||
suffix="${opts#EBUSD_OPTS}"
|
||||
dev=`echo " ${!opts}"|sed -e 's#^.* -d ##' -e 's# -.*$##'`
|
||||
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"
|
||||
/bin/setserial "$dev" low_latency
|
||||
log_end_msg $?
|
||||
fi
|
||||
log_daemon_msg "Starting ebusd${suffix}" ebusd
|
||||
pidfile=$PIDFILE_PREFIX${suffix}$PIDFILE_SUFFIX
|
||||
start-stop-daemon --start --quiet --oknodo --pidfile $pidfile --exec $DAEMON -- --pidfile $pidfile ${!opts}
|
||||
|
||||
@@ -2,8 +2,7 @@ FROM debian
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libmosquitto1 \
|
||||
curl \
|
||||
setserial
|
||||
curl
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf automake g++ make \
|
||||
|
||||
@@ -2,8 +2,7 @@ FROM debian
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libmosquitto1 \
|
||||
curl \
|
||||
setserial
|
||||
curl
|
||||
|
||||
LABEL maintainer "ebusd@ebusd.eu"
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@ FROM debian
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libmosquitto1 \
|
||||
curl \
|
||||
setserial
|
||||
curl
|
||||
|
||||
LABEL maintainer "ebusd@ebusd.eu"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user