hmcfgusb/hmland installieren (HomeMatic USB Deamon)
USB-Stick noch nicht anstecken
sudo apt-get install libusb-1.0-0-dev build-essential
cd /opt
sudo git clone git://git.zerfleddert.de/hmcfgusb
cd hmcfgusb
sudo make
sudo cp hmcfgusb.rules /etc/udev/rules.d/
USB-Stick jetzt anstecken
/etc/init.d/hmland
mit folgendem Inhalt erstellen
#!/bin/bash
#
# simple init for hmland
### BEGIN INIT INFO
# Provides: hmland
# Required-Start: $network $local_fs $remote_fs
# Required-Stop:: $network $local_fs $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start hmland daemon at boot time
# Description: Provide Service to use HM-USB-CFG Adapter for FHEM.
### END INIT INFO
pidfile=/var/run/hmland.pid
port=1000
case "$1" in
start|"")
chrt 50 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p $port 2>&1 | perl -ne '$|=1; print localtime . ": [hmland] $_"' >> /var/log/hmland.log &
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
killall hmland
;;
status)
if [ ! -e $pidfile ]; then
echo "No pid"
exit 1
fi
pid=`cat $pidfile`
if kill -0 $pid &>1 > /dev/null; then
echo "Running"
exit 0
else
rm $pidfile
echo "Not running"
exit 1
fi
;;
*)
echo "Usage: hmland [start|stop|status]" >&2
exit 3
;;
esac
sudo update-rc.d hmland defaults
sudo service hmland start
Ggf. /var/log/hmland.log
prüfen