2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00
fhem-mirror/fhem/contrib/FB7270/makeimage
rudolfkoenig 0d1565a785 FB_checkpw does not work in some constellations
git-svn-id: https://svn.fhem.de/fhem/trunk@3049 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-04-08 10:52:34 +00:00

38 lines
908 B
Bash
Executable File

#!/bin/sh
fw=$1
if test ! -f ../../$fw.tar.gz; then
echo "usage: makeimage <fhem-VERSION>"
echo "../../<fhem-VERSION>.tar.gz must exist"
exit 1
fi
rm -rf var
echo Extracting the fritzbox template
unzip -qo ../../priv/fritzbox7270_template.zip
rm -rf fhem/{FHEM,www,docs}
echo Merging
rm -rf $fw
tar zxf ../../$fw.tar.gz
cd $fw
cp -rp fhem.pl fhem.cfg FHEM docs www ../fhem
cd ..
rm -rf $fw
rm -rf fhem/docs/*.{odg,pdf,man,txt}
cp fhemcmd.sh fhem/FHEM
cp startfhem fhem
cat >> fhem/fhem.cfg << 'EOF'
#attr WEB basicAuth {use FritzBoxUtils;;FB_checkPw("localhost","$password") }
#attr WEBphone basicAuth {use FritzBoxUtils;;FB_checkPw("localhost","$password") }
#attr WEBtablet basicAuth {use FritzBoxUtils;;FB_checkPw("localhost","$password") }
#attr telnetPort password {use FritzBoxUtils;;FB_checkPw("localhost","$password") }
EOF
echo Packing again
zip -qr $fw-fb7270.zip fhem
rm -rf fhem