chore: prune folder structure

This commit is contained in:
andig 2023-11-01 23:36:16 +01:00
parent 383f337d6e
commit 384cedae00
5 changed files with 3 additions and 3 deletions

View file

View file

@ -0,0 +1,31 @@
#!/bin/sh
set -e
# started as hassio addon
HASSIO_OPTIONSFILE=/data/options.json
if [ -f ${HASSIO_OPTIONSFILE} ]; then
CONFIG=$(grep -o '"config_file": "[^"]*' ${HASSIO_OPTIONSFILE} | grep -o '[^"]*$')
echo "Using config file: ${CONFIG}"
SQLITE_FILE=$(grep -o '"sqlite_file": "[^"]*' ${HASSIO_OPTIONSFILE} | grep -o '[^"]*$')
if [ ! -f "${CONFIG}" ]; then
echo "Config not found. Please create a config under ${CONFIG}."
echo "For details see evcc documentation at https://github.com/evcc-io/evcc#readme."
else
if [ "${SQLITE_FILE}" ]; then
echo "starting evcc: 'EVCC_DATABASE_DSN=${SQLITE_FILE} evcc --config ${CONFIG}'"
exec env EVCC_DATABASE_DSN="${SQLITE_FILE}" evcc --config "${CONFIG}"
else
echo "starting evcc: 'evcc --config ${CONFIG}'"
exec evcc --config "${CONFIG}"
fi
fi
else
if [ "$1" == '"evcc"' ] || expr "$1" : '-*' > /dev/null; then
exec evcc "$@"
else
exec "$@"
fi
fi

11
packaging/patch/asn1.diff Normal file
View file

@ -0,0 +1,11 @@
--- asn1.go 2022-09-15 13:21:17.000000000 +0200
+++ asn1_new.go 2022-09-15 13:22:12.000000000 +0200
@@ -255,7 +255,7 @@
switch bytes[0] {
case 0:
*out = false
- case 0xff:
+ case 1, 0xff:
*out = true
default:
return false