mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
add logfiles dir for oe install
Former-commit-id: d549732905e85d224921de574463f540d8d5d647
This commit is contained in:
parent
4853d17563
commit
fdbb1673eb
@ -206,6 +206,7 @@ elif [ $OS_OPENELEC -eq 1 ]; then
|
|||||||
#modify all old installs with a logfile output
|
#modify all old installs with a logfile output
|
||||||
sed -i 's|/dev/null|/storage/logfiles/hyperion.log|g' /storage/.config/autostart.sh
|
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
|
# only add to start script if hyperion is not present yet
|
||||||
|
mkdir /storage/logfiles 2>/dev/null
|
||||||
touch /storage/.config/autostart.sh 2>/dev/null
|
touch /storage/.config/autostart.sh 2>/dev/null
|
||||||
if [ `cat /storage/.config/autostart.sh 2>/dev/null | grep hyperiond | wc -l` -eq 0 ]; then
|
if [ `cat /storage/.config/autostart.sh 2>/dev/null | grep hyperiond | wc -l` -eq 0 ]; then
|
||||||
echo '---> Adding Hyperion to OpenELEC autostart.sh'
|
echo '---> Adding Hyperion to OpenELEC autostart.sh'
|
||||||
|
Loading…
Reference in New Issue
Block a user