Store hmip_address.conf (#435)

* Store hmip_address.conf

* Update Dockerfile

* Update config.json

* Update CHANGELOG.md

* Update crRFD.conf

* Update run.sh
This commit is contained in:
Pascal Vizeli
2018-10-31 16:45:40 +01:00
committed by GitHub
parent a59deb7d6e
commit b9075a87cc
5 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
# Changelog
## 5
- Save hmip_address.conf persistent
## 4
- New ubuntu base images
- Support firmware update of HM-MOD-RPI-PCB, HmIP-RFUSB

View File

@@ -54,4 +54,5 @@ COPY rfd.conf hs485d.conf crRFD.conf /etc/config/
COPY run.sh /
RUN chmod a+x /run.sh
WORKDIR /data
CMD [ "/run.sh" ]

View File

@@ -1,6 +1,6 @@
{
"name": "HomeMatic OCCU",
"version": "4",
"version": "5",
"slug": "homematic",
"description": "HomeMatic central based on OCCU",
"url": "https://home-assistant.io/addons/homematic/",

View File

@@ -1,5 +1,5 @@
Config.Dir=/etc/config/crRFD
Config.Dir=/data/crRFD
Config.Include=hmip_user.conf
# Directory Configuration

View File

@@ -15,6 +15,11 @@ WAIT_PIDS=()
mkdir -p /data/firmware
mkdir -p /data/crRFD
# Restore data
if [ -f /data/hmip_address.conf ]; then
cp -f /data/hmip_address.conf /etc/config/
fi
# RF support
if [ "$RF_ENABLE" == "true" ]; then
for (( i=0; i < "$RF_DEVICES"; i++ )); do
@@ -93,8 +98,14 @@ if [ "$HMIP_ENABLE" == "true" ]; then
done
# Run HMIPServer
# shellcheck disable=SC2086
java -Xmx128m -Dos.arch=arm -Dlog4j.configuration=file:///etc/config/log4j.xml -Dfile.encoding=ISO-8859-1 -Dgnu.io.rxtx.SerialPorts=${DEVICE} -jar /opt/HMServer/HMIPServer.jar /etc/config/crRFD.conf &
WAIT_PIDS+=($!)
if [ ! -f /data/hmip_address.conf ]; then
sleep 30
cp -f /etc/config/hmip_address.conf /data/
fi
fi
# Register stop