Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Quoted
Original von steginger
Der Reihe nach:
- bios-info gibt auf meinem M10000: ...
Quoted
Was ist die Ausgabe des Info-Writers bzw. wo finde ich die?
- Der Aufruf in meiner vdrshutdown ist
![]()
Source code
1 $NVRAMCMD -I via_epia_m -ls $1
Quoted
Original von zuck
Ok, hier der patch, ist zwar eigentlich trivial, aber naja...
![]()
Source code
1 ...
Quoted
Original von steginger
Hi nochmal...
... was vergessen:
Den Fehler von wegen wakeup hour not correct (31) hatte ich am Anfang auch. Anscheinend sind bei mir ungültige Werte im BIOS gestanden (war ganz neu das Board). Ich habe dann im BIOS alles nochmal aus/eingeschaltet und einfach irgendwelche (gültigen) Werte im BIOS eingetragen. Danach hat es auch mit nvram-wakeup geklappt.
Quoted
Original von Ralfman
Hallo Bistr-o-Math,
so hat es mir guess angezeigt, einfach mit Copy und Paste hier hin.
Quoted
Ich habe es eben ausprobiert, auf meinem EPIA6000 funktioniert nvram-wakeup jetzt. Allerdings fährt vdrshutdown den Rechner nicht mehr herunter bzw. macht keinen reboot. Im log steht, dass die Weckzeit geschrieben wurde und das ein Reboot notwendig ist. Und dann läuft VDR schön weiter. Mhhmhh, wo das wieder dran liegt? Hat jemand einen Tipp?
Quoted
Original von Ralfman
Meine vdrshutdown ist eigentlich die Originale, die beim Paket dabei ist. Ich habe nur shutdown .... durch reboot bzw. poweroff ersetzt, da mein kleines Linux nichts anderes versteht.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
#!/bin/sh
# $Id: vdrshutdown,v 1.10 2002/03/15 22:25:38 bistr-o-math Exp $
NVRAMCMD=/usr/bin/VDR/nvram-wakeup
$NVRAMCMD -ls $1
case $PIPESTATUS in
0) # all went ok - new date and time set
logger PIPESTATUS 0
poweroff
EXITSTATUS=0
;;
1) # all went ok - new date and time set.
#
# *** but we need to reboot. ***
#
# for some boards this is needed after every change.
#
# for some other boards, we only need this after changing the
# status flag, i.e. from enabled to disabled or the other way.
# For plan A (see README file for more details) - uncomment
# the touch line (don't forget to change your boot script)
# and comment out the lilo line
#
# For plan B - uncomment the lilo line and comment out the touch line
# (don't forget to install the modified kernel image first)
#
# touch /nvramboot
logger PIPESTATUS 1
lilo -R PowerOff
reboot
EXITSTATUS=0
;;
2) # something went wrong
# don't do anything - just exit with status 1
logger PIPESTATUS 2
EXITSTATUS=1
;;
esac
# exit with 0 if everything went ok.
# exit with 1 if something went wrong.
exit $EXITSTATUS
|
|
|
Source code |
1 |
echo $PIPESTATUS |
Quoted
Original von oldspies2
Ich hab es soweit laufen, allerdings läuft die vdrshutdown nicht. per hand kann ich eine zeit vorgeben die auch eingetragen wird und der rechner bootet auch.
VDR2:/usr/local/bin # ./nvram-wakeup -I via_epia_m -s $((`date +%s` + 20 * 60))
....
aber das script....
VDR2:/usr/local/bin # ./vdrshutdown
--syslog parameter specified. All output goes to the syslog
/usr/local/bin/nvram-wakeup: option requires an argument -- s
./vdrshutdown: line 58: syntax error: unexpected end of file
|
|
Source code |
1 |
./vdrshutdown $((`date +%s` + 20 * 60)) |
|
|
Source code |
1 |
nl -ba vdrshutdown |
|
|
Source code |
1 2 3 4 5 |
#!/bin/bash NVRAMCMD=/usr/local/bin/nvram-wakeup $NVRAMCMD -I via_epia_m -ls $1 echo PIPESTATUS=$PIPESTATUS |