mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
move control scripts from data/neutrino-scripts to data/control
Origin commit data
------------------
Branch: ni/coolstream
Commit: f74f2aef5c
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-26 (Sat, 26 Jan 2019)
Origin message was:
------------------
- move control scripts from data/neutrino-scripts to data/control
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
39
data/control/Makefile.am
Normal file
39
data/control/Makefile.am
Normal file
@@ -0,0 +1,39 @@
|
||||
installdir = $(CONFIGDIR)
|
||||
|
||||
install_DATA = \
|
||||
audioplayer.start \
|
||||
audioplayer.end \
|
||||
deepstandby.on \
|
||||
deepstandby.off \
|
||||
flash.start \
|
||||
inactivity.on \
|
||||
migration.sh \
|
||||
movieplayer.start \
|
||||
movieplayer.end \
|
||||
neutrino.start \
|
||||
pictureviewer.start \
|
||||
pictureviewer.end \
|
||||
recording.timer \
|
||||
recording.start \
|
||||
recording.end \
|
||||
standby.on \
|
||||
standby.off
|
||||
|
||||
install-data-hook:
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/audioplayer.start
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/audioplayer.end
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/deepstandby.on
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/deepstandby.off
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/flash.start
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/inactivity.on
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/migration.sh
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/movieplayer.start
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/movieplayer.end
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/neutrino.start
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/pictureviewer.start
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/pictureviewer.end
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/recording.timer
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/recording.start
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/recording.end
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/standby.on
|
||||
chmod 0755 $(DESTDIR)$(CONFIGDIR)/standby.off
|
2
data/control/audioplayer.end
Normal file
2
data/control/audioplayer.end
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
2
data/control/audioplayer.start
Normal file
2
data/control/audioplayer.start
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
2
data/control/deepstandby.off
Normal file
2
data/control/deepstandby.off
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
2
data/control/deepstandby.on
Normal file
2
data/control/deepstandby.on
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
9
data/control/flash.start
Executable file
9
data/control/flash.start
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# kill start script first to ignore neutrino's exit codes
|
||||
killall start_neutrino
|
||||
|
||||
touch /tmp/.flash.start
|
||||
|
||||
# run shutdown routine depending on flagfile
|
||||
/etc/init.d/rcK
|
2
data/control/inactivity.on
Normal file
2
data/control/inactivity.on
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
24
data/control/migration.sh
Normal file
24
data/control/migration.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /var/tuxbox/config
|
||||
if [ -e neutrino.conf ]; then
|
||||
# remove NG leftovers
|
||||
sed -i 's|ng_netfs_\(.*\)|netfs_\1|' neutrino.conf
|
||||
|
||||
# webradio_usr.xml was moved
|
||||
sed -i "s|/var/tuxbox/config/webradio_usr.xml|/var/tuxbox/webradio/webradio_usr.xml|" neutrino.conf
|
||||
mkdir -p /var/tuxbox/webradio/
|
||||
if [ -e /var/tuxbox/config/webradio_usr.xml ]; then
|
||||
mv /var/tuxbox/config/webradio_usr.xml /var/tuxbox/webradio/
|
||||
fi
|
||||
|
||||
# webtv_usr.xml was moved
|
||||
sed -i "s|/var/tuxbox/config/webtv_usr.xml|/var/tuxbox/webtv/webtv_usr.xml|" neutrino.conf
|
||||
mkdir -p /var/tuxbox/webtv/
|
||||
if [ -e /var/tuxbox/config/webtv_usr.xml ]; then
|
||||
mv /var/tuxbox/config/webtv_usr.xml /var/tuxbox/webtv/
|
||||
fi
|
||||
|
||||
sort neutrino.conf > neutrino.sort
|
||||
mv neutrino.sort neutrino.conf
|
||||
fi
|
4
data/control/movieplayer.end
Normal file
4
data/control/movieplayer.end
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
service tuxcald start
|
||||
service tuxmaild start
|
4
data/control/movieplayer.start
Normal file
4
data/control/movieplayer.start
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
service tuxcald stop
|
||||
service tuxmaild stop
|
2
data/control/neutrino.start
Normal file
2
data/control/neutrino.start
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
2
data/control/pictureviewer.end
Normal file
2
data/control/pictureviewer.end
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
2
data/control/pictureviewer.start
Normal file
2
data/control/pictureviewer.start
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
4
data/control/recording.end
Normal file
4
data/control/recording.end
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
service tuxcald start
|
||||
service tuxmaild start
|
4
data/control/recording.start
Normal file
4
data/control/recording.start
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
service tuxcald stop
|
||||
service tuxmaild stop
|
2
data/control/recording.timer
Normal file
2
data/control/recording.timer
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
|
4
data/control/standby.off
Normal file
4
data/control/standby.off
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
service tuxcald start
|
||||
service tuxmaild start
|
4
data/control/standby.on
Normal file
4
data/control/standby.on
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
service tuxcald stop
|
||||
service tuxmaild stop
|
Reference in New Issue
Block a user