From b25a953a18e86759182a698f195dceecfb83f0d9 Mon Sep 17 00:00:00 2001 From: gixxpunk Date: Sat, 21 Oct 2017 14:39:24 +0200 Subject: [PATCH 1/2] - hd1/hd2: fix deep standby and timer recordings --- skel-root/coolstream/hd1/etc/init.d/start_neutrino | 11 +++++++++++ skel-root/coolstream/hd2/etc/init.d/start_neutrino | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/skel-root/coolstream/hd1/etc/init.d/start_neutrino b/skel-root/coolstream/hd1/etc/init.d/start_neutrino index f3fc06e4..902ced46 100755 --- a/skel-root/coolstream/hd1/etc/init.d/start_neutrino +++ b/skel-root/coolstream/hd1/etc/init.d/start_neutrino @@ -30,5 +30,16 @@ if [ -e /tmp/.reboot ]; then # gets created by neutrino reboot elif [ -e /tmp/.halt ]; then dt -t"SHUTDOWN" + + TIMER="/tmp/.timer" + if [ -e $TIMER ]; then + # custom poweroff binary + if type shutdown_helper > /dev/null; then + PARAM=`cat $TIMER` + echo "calling 'shutdown_helper "$PARAM"'" + shutdown_helper $PARAM + fi + fi + poweroff fi diff --git a/skel-root/coolstream/hd2/etc/init.d/start_neutrino b/skel-root/coolstream/hd2/etc/init.d/start_neutrino index fa0c50d6..6dbb55bb 100755 --- a/skel-root/coolstream/hd2/etc/init.d/start_neutrino +++ b/skel-root/coolstream/hd2/etc/init.d/start_neutrino @@ -34,5 +34,16 @@ if [ -e /tmp/.reboot ]; then # gets created by neutrino reboot elif [ -e /tmp/.halt ]; then dt -t"SHUTDOWN" + + TIMER="/tmp/.timer" + if [ -e $TIMER ]; then + # custom poweroff binary + if type shutdown_helper > /dev/null; then + PARAM=`cat $TIMER` + echo "calling 'shutdown_helper "$PARAM"'" + shutdown_helper $PARAM + fi + fi + poweroff fi From 3865f04fb85e8eb6ed938b65907815d6b3c3ecea Mon Sep 17 00:00:00 2001 From: gixxpunk Date: Sat, 21 Oct 2017 15:45:18 +0200 Subject: [PATCH 2/2] - ax: enable GST_DEBUG by default --- skel-root/axtech/ax/etc/init.d/start_neutrino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skel-root/axtech/ax/etc/init.d/start_neutrino b/skel-root/axtech/ax/etc/init.d/start_neutrino index cf5df4af..882a6549 100755 --- a/skel-root/axtech/ax/etc/init.d/start_neutrino +++ b/skel-root/axtech/ax/etc/init.d/start_neutrino @@ -6,7 +6,7 @@ if [ -e /var/etc/.coredump ]; then ulimit -c unlimited fi -#GST_DEBUG=dtsdownmix:4,dvbaudiosink:4,dvbvideosink:4 +GST_DEBUG=dtsdownmix:4,dvbaudiosink:4,dvbvideosink:4 until neutrino; do RET=$?