mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-02 03:35:59 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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" ]
|
||||
|
||||
@@ -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/",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
Config.Dir=/etc/config/crRFD
|
||||
Config.Dir=/data/crRFD
|
||||
Config.Include=hmip_user.conf
|
||||
|
||||
# Directory Configuration
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user