switchoff.mvi
#1
Posted 27 January 2013 - 16:32
running the latest version openpli_2.1 on my genuine dm800 and i am trying to change switchoff.mvi in /usr/share
seems the openpli switchoff.mvi ( goodbye ) is no longer used
where does the yellow triangle come from?
and am i able to change it to use the
many thanks for this great image
foz
Re: switchoff.mvi #2
Posted 27 January 2013 - 17:31
#!/bin/sh ### BEGIN INIT INFO # Provides: halt # Required-Start: # Required-Stop: # Default-Start: # Default-Stop: 0 # Short-Description: Execute the halt command. # Description: ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin # See if we need to cut the power. if test -x /etc/init.d/ups-monitor then /etc/init.d/ups-monitor poweroff fi # Don't shut down drives if we're using RAID. hddown="-h" if grep -qs '^md.*active' /proc/mdstat then hddown="" fi if test -e /usr/share/switchoff.mvi then showiframe /usr/share/switchoff.mvi fi halt -d -f -p $hddown : exit 0
GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K
Re: switchoff.mvi #3
Posted 27 January 2013 - 17:37
do i replace old script with the script you posted?
my script as is at the moment :-
#! /bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if test -e /usr/share/switchoff.mvi
then
showiframe /usr/share/switchoff.mvi
fi
halt -d -f -i -p -h
: exit 0
many thanks
Edited by foz1234, 27 January 2013 - 17:38.
Re: switchoff.mvi #4
Re: switchoff.mvi #5
Posted 27 January 2013 - 19:35
changed to the below script and now its working
#! /bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if test -e /usr/share/switchoff.mvi
then
showiframe /usr/share/switchoff.mvi
#clear frame buffer to ensure switchoff.mvi is viewable
dd if=/dev/zero of=/dev/fb0 bs=4096 count=2108
fi
halt -d -f -i -p -h
: exit 0
Re: switchoff.mvi #6
Re: switchoff.mvi #7
Re: switchoff.mvi #8
Re: switchoff.mvi #9
Posted 21 January 2016 - 22:20
I have never seen a shutdown logo in a PLi image, I doubt if this is supported even...
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: switchoff.mvi #10
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users