Configuration pour le démarrage automatique de owfs
Créer le fichier /etc/init.d/owfs.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: owfs
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 6
# Short-Description: run owfs
# Description: run owfs
### END INIT INFO
MOUNTPOINT='/mnt/1Wire'
case "$1" in
start)
echo "Starting script owfs with USB support...";
echo `/usr/bin/owfs -u -s localhost:4304 --allow_other --mountpoint=$MOUNTPOINT`;
;;
stop)
echo "stopping script owfs by unloading mount-point ..";
echo `umount $MOUNTPOINT`;
;;
*)
echo "Usage: $N {start|stop}" >&2
exit 1
;;
esac
exit 0
Puis faire :
#sudo update-rc.d owfs.sh defaults
Source : Sebastien Mei, owfs.org
Aucun commentaire :
Enregistrer un commentaire