Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: no shutdown while encoding



> Look at http://www.mannitec.de/svcd.htm

That was exactly the link I was looking for - thanks...

But in the meanwhile I wrote my own small script:

#!/bin/bash
# $Id: vdrshutdown,v 1.10 2002/03/15 22:25:38 bistr-o-math Exp $

NVRAMCMD=/usr/local/bin/nvram-wakeup
i=`ps aux|awk '{print $11}'|grep mencoder|wc -l`

if [ $i -gt 0 ]
then
        EXITSTATUS=0
else
        $NVRAMCMD -ls $1
        case $PIPESTATUS in
        0) # all went ok - new date and time set
                shutdown -h now
                EXITSTATUS=0
                ;;
        1) # all went ok - new date and time set.
                lilo -R PowerOff


                shutdown -r now
                EXITSTATUS=0
                ;;
        2) # something went wrong
                EXITSTATUS=1
                ;;
                esac

fi

exit $EXITSTATUS

Bye,

   Gernot

--
Gernot A. Weber

http://www.tux-web.de
gernot.weber@quantumnet.de



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index