migration.sh: move users control scripts to new directory

Origin commit data
------------------
Branch: ni/coolstream
Commit: 367e5a348c
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-26 (Sat, 26 Jan 2019)

Origin message was:
------------------
- migration.sh: move users control scripts to new directory

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-01-26 17:05:44 +01:00
parent eda65db6b3
commit 9e0446e21d

View File

@@ -22,3 +22,35 @@ if [ -e neutrino.conf ]; then
sort neutrino.conf > neutrino.sort
mv neutrino.sort neutrino.conf
fi
controlscripts="\
audioplayer.start \
audioplayer.end \
deepstandby.on \
deepstandby.off \
inactivity.on \
movieplayer.start \
movieplayer.end \
neutrino.start \
pictureviewer.start \
pictureviewer.end \
recording.timer \
recording.start \
recording.end \
scan.start \
scan.stop \
standby.on \
standby.off \
"
mkdir -p /var/tuxbox/control/
for controlscript in $controlscripts; do
echo $controlscript
if [ -e $controlscript ]; then
mv $controlscript /var/tuxbox/control/
fi
done
# these control scripts hasn't counterparts in /var
rm -f migration.sh
rm -f flash.start