maybe fix install.sh

Former-commit-id: 2713fb28ddf70d6a22fd743ca931b2f120e03a8e
This commit is contained in:
brindosch 2016-04-30 17:00:29 +02:00
parent 7a9ba876b0
commit 4853d17563
1 changed files with 1 additions and 0 deletions

View File

@ -206,6 +206,7 @@ elif [ $OS_OPENELEC -eq 1 ]; then
#modify all old installs with a logfile output
sed -i 's|/dev/null|/storage/logfiles/hyperion.log|g' /storage/.config/autostart.sh
# only add to start script if hyperion is not present yet
touch /storage/.config/autostart.sh 2>/dev/null
if [ `cat /storage/.config/autostart.sh 2>/dev/null | grep hyperiond | wc -l` -eq 0 ]; then
echo '---> Adding Hyperion to OpenELEC autostart.sh'
echo "/storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json > /storage/logfiles/hyperion.log 2>&1 &" >> /storage/.config/autostart.sh