[Buildroot] [PATCH] owfs: add sysv init scripts

Peter Korsgaard peter at korsgaard.com
Fri Mar 25 20:41:52 UTC 2016


>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be> writes:

 > owserver is started unconditionally, but it needs the device(s) to
 > be specified at startup. Therefore a check for non-empty OWSERVER_ARGS
 > is added to the owserver start script.

 > owfs is started only if is built. It will connect to the owserver.
 > It will try to load the fuse module; if fuse is built-in or already
 > loaded, modprobe -q will fail silently.

 > Users who want a setup without owserver need to remove the owserver
 > init script post-build and need to give appropriate defaults to owfs.

 > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>

Looks good, except:

> diff --git a/package/owfs/S30owfs b/package/owfs/S30owfs
 > new file mode 100755
 > index 0000000..552eb75
 > --- /dev/null
 > +++ b/package/owfs/S30owfs
 > @@ -0,0 +1,32 @@
 > +NAME="owfs"
 > +DAEMON="/usr/bin/${NAME}"
 > +PID_F="/run/${NAME}.pid"
 > +MOUNTPOINT="/dev/1wire"
 > +SERVER="localhost:4304"

I've never used owfs, but /dev/1wire sounds like an odd mount point to
me. I would have expected something under /mnt?

Googling around, I see the manual page suggests /mnt/1wire:

http://owfs.org/index.php?page=owfs

You will need to create the mount point during build time though, as
/mnt might not be writable.

The point of sourcing /etc/default/owfs is so the user can override the
defaults. How about sticking the MOUNTPOINT / SERVER into a OWFS_ARGS or
at least prefixing the variables with OWFS?

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list