From a848e0d88edbc7bfdec0471a981b04cb11ffa2f2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 26 Jan 2019 17:05:44 +0100 Subject: [PATCH] migration.sh: move users control scripts to new directory Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/367e5a348cd3d5a9f6faf3bb6d66f36e34acc055 Author: vanhofen Date: 2019-01-26 (Sat, 26 Jan 2019) Origin message was: ------------------ - migration.sh: move users control scripts to new directory --- data/control/migration.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/data/control/migration.sh b/data/control/migration.sh index baef99871..893de7585 100644 --- a/data/control/migration.sh +++ b/data/control/migration.sh @@ -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