2 DAEMON="/usr/bin/${NAME}"
3 PID_F="/run/${NAME}.pid"
4 OWFS_MOUNTPOINT="/dev/1wire"
5 OWFS_DEVICES="-s localhost:4304"
8 [ -r /etc/default/${NAME} ] && . /etc/default/${NAME}
12 printf "Starting ${NAME}: "
13 # Fuse may be in a module, so try to load it
14 modprobe -q fuse && printf "[fuse] "
15 mkdir -p ${OWFS_MOUNTPOINT}
16 start-stop-daemon -S -x ${DAEMON} -- \
17 --pid_file ${PID_F} -m ${OWFS_MOUNTPOINT} ${OWFS_DEVICES} \
19 [ $? -eq 0 ] && echo "OK" || echo "FAIL"
22 printf "Stopping ${NAME}: "
23 start-stop-daemon -K -p ${PID_F}
24 [ $? -eq 0 ] && echo "OK" || echo "FAIL"
31 echo "Usage: $0 {start|stop|restart|reload}"