+++ /dev/null
-NAME="owserver"
-DAEMON="/usr/bin/${NAME}"
-PID_F="/run/${NAME}.pid"
-
-OWSERVER_ARGS=
-[ -r /etc/default/${NAME} ] && . /etc/default/${NAME}
-
-case "$1" in
-start)
- printf "Starting ${NAME}: "
- if [ -z "${OWSERVER_ARGS}" ]; then
- echo "OWSERVER_ARGS must be set in defaults file" 1>&2
- exit 1
- fi
- start-stop-daemon -S -x ${DAEMON} -- \
- --pid_file ${PID_F} ${OWSERVER_ARGS}
- [ $? -eq 0 ] && echo "OK" || echo "FAIL"
- ;;
-stop)
- printf "Stopping ${NAME}: "
- start-stop-daemon -K -p ${PID_F}
- [ $? -eq 0 ] && echo "OK" || echo "FAIL"
- ;;
-restart|reload)
- $0 stop
- $0 start
- ;;
-*)
- echo "Usage: $0 {start|stop|restart|reload}"
- exit 1
-esac
+++ /dev/null
-NAME="owfs"
-DAEMON="/usr/bin/${NAME}"
-PID_F="/run/${NAME}.pid"
-OWFS_MOUNTPOINT="/dev/1wire"
-OWFS_DEVICES="-s localhost:4304"
-OWFS_ARGS=""
-
-[ -r /etc/default/${NAME} ] && . /etc/default/${NAME}
-
-case "$1" in
-start)
- printf "Starting ${NAME}: "
- # Fuse may be in a module, so try to load it
- modprobe -q fuse && printf "[fuse] "
- mkdir -p ${OWFS_MOUNTPOINT}
- start-stop-daemon -S -x ${DAEMON} -- \
- --pid_file ${PID_F} -m ${OWFS_MOUNTPOINT} ${OWFS_DEVICES} \
- ${OWFS_ARGS}
- [ $? -eq 0 ] && echo "OK" || echo "FAIL"
- ;;
-stop)
- printf "Stopping ${NAME}: "
- start-stop-daemon -K -p ${PID_F}
- [ $? -eq 0 ] && echo "OK" || echo "FAIL"
- ;;
-restart|reload)
- $0 stop
- $0 start
- ;;
-*)
- echo "Usage: $0 {start|stop|restart|reload}"
- exit 1
-esac
--- /dev/null
+NAME="owserver"
+DAEMON="/usr/bin/${NAME}"
+PID_F="/run/${NAME}.pid"
+
+OWSERVER_ARGS=
+[ -r /etc/default/${NAME} ] && . /etc/default/${NAME}
+
+case "$1" in
+start)
+ printf "Starting ${NAME}: "
+ if [ -z "${OWSERVER_ARGS}" ]; then
+ echo "OWSERVER_ARGS must be set in defaults file" 1>&2
+ exit 1
+ fi
+ start-stop-daemon -S -x ${DAEMON} -- \
+ --pid_file ${PID_F} ${OWSERVER_ARGS}
+ [ $? -eq 0 ] && echo "OK" || echo "FAIL"
+ ;;
+stop)
+ printf "Stopping ${NAME}: "
+ start-stop-daemon -K -p ${PID_F}
+ [ $? -eq 0 ] && echo "OK" || echo "FAIL"
+ ;;
+restart|reload)
+ $0 stop
+ $0 start
+ ;;
+*)
+ echo "Usage: $0 {start|stop|restart|reload}"
+ exit 1
+esac
--- /dev/null
+NAME="owfs"
+DAEMON="/usr/bin/${NAME}"
+PID_F="/run/${NAME}.pid"
+OWFS_MOUNTPOINT="/dev/1wire"
+OWFS_DEVICES="-s localhost:4304"
+OWFS_ARGS=""
+
+[ -r /etc/default/${NAME} ] && . /etc/default/${NAME}
+
+case "$1" in
+start)
+ printf "Starting ${NAME}: "
+ # Fuse may be in a module, so try to load it
+ modprobe -q fuse && printf "[fuse] "
+ mkdir -p ${OWFS_MOUNTPOINT}
+ start-stop-daemon -S -x ${DAEMON} -- \
+ --pid_file ${PID_F} -m ${OWFS_MOUNTPOINT} ${OWFS_DEVICES} \
+ ${OWFS_ARGS}
+ [ $? -eq 0 ] && echo "OK" || echo "FAIL"
+ ;;
+stop)
+ printf "Stopping ${NAME}: "
+ start-stop-daemon -K -p ${PID_F}
+ [ $? -eq 0 ] && echo "OK" || echo "FAIL"
+ ;;
+restart|reload)
+ $0 stop
+ $0 start
+ ;;
+*)
+ echo "Usage: $0 {start|stop|restart|reload}"
+ exit 1
+esac
--with-fuseinclude=$(STAGING_DIR)/usr/include \
--with-fuselib=$(STAGING_DIR)/usr/lib
define OWFS_INSTALL_FUSE_INIT_SYSV
- $(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S30owfs \
- $(TARGET_DIR)/etc/init.d/S30owfs
+ $(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S60owfs \
+ $(TARGET_DIR)/etc/init.d/S60owfs
endef
define OWFS_CREATE_MOUNTPOINT
mkdir -p $(TARGET_DIR)/dev/1wire
OWFS_MAKE = $(MAKE) $(OWFS_EXTRA_MAKE_OPTS)
define OWFS_INSTALL_INIT_SYSV
- $(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S25owserver \
- $(TARGET_DIR)/etc/init.d/S25owserver
+ $(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S55owserver \
+ $(TARGET_DIR)/etc/init.d/S55owserver
$(OWFS_INSTALL_FUSE_INIT_SYSV)
endef