Remove cont-init dependency to fix s6-rc-compile error

This commit is contained in:
2025-07-17 22:41:36 +02:00
parent 1a85048425
commit 8750558aec
4 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/with-contenv bash
. /opt/hassio-addons/base.sh
CONFIG_PATH=/data/fahclient
mkdir -p "$CONFIG_PATH"
if [ ! -f "$CONFIG_PATH/config.xml" ]; then
cat > "$CONFIG_PATH/config.xml" << EOC
<config>
<user value="$(hass.config.get 'user')"/>
<team value="$(hass.config.get 'team')"/>
<passkey value="$(hass.config.get 'passkey')"/>
<power value="$(hass.config.get 'power')"/>
<web-enable value="true"/>
<http-addresses value="0.0.0.0:7396"/>
</config>
EOC
fi

View File

@@ -0,0 +1 @@
oneshot

0
rootfs/etc/s6-overlay/s6-rc.d/init-foldingathome/run Normal file → Executable file
View File