From e38ab1639d643ee19f7ad1ed5cf289914a558859 Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Sat, 30 Mar 2013 20:10:49 +0100 Subject: more cleanups, added example README.grub2 with example how to use grub2 syntax --- ChangeLog | 5 +++++ README | 3 ++- README.grub2 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ etc/conf.d/vdr | 4 +--- 4 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 README.grub2 diff --git a/ChangeLog b/ChangeLog index 6cad7d4..2d0a9b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for gentoo-vdr-scripts # $Id$ + 30 Mar 2013; Joerg Bornkessel +README.grub2, README, + etc/conf.d/vdr: + more cleanups, added example README.grub2 with example how to use grub2 + syntax + 30 Mar 2013; Joerg Bornkessel usr/share/vdr/shutdown/pre-shutdown-05-time-calculations.sh, README.vdrcaps, etc/conf.d/vdr, usr/share/vdr/bin/vdr-bg.sh, diff --git a/README b/README index 55b1524..37803c3 100644 --- a/README +++ b/README @@ -7,8 +7,9 @@ This package contains all support scripts for vdr to make it like a real set top box. Dependencies: + >=vdr-1.7.36 earlier versions are not supported nvram-wakeup when being used for setting wakeup time Author: Matthias Schwarzott - Joerg Bornkessel \ No newline at end of file + Joerg Bornkessel diff --git a/README.grub2 b/README.grub2 new file mode 100644 index 0000000..fc5dce7 --- /dev/null +++ b/README.grub2 @@ -0,0 +1,46 @@ +# gentoo-vdr-scripts grub2 syntax + +# example grub2 entry for reboot and default boot kernel +# set this +# /boot/grub2/custom.cfg +# or +# /etc/grub.d/40_custom + +### reboot kernel +# some Motherboards need a reboot to write the wakeup time in the BIOS + +# + +## 0 ## +menuentry 'NVRRAM-Poweroff' { +set saved_entry='1' +save_env saved_entry +set root='(hd0,5)' +linux (hd0,1)/kernel-default root=/dev/sda5 quiet init=/sbin/poweroff quiet +} + +# + +# in this case, use of init=/sbin/poweroff to stop the system reboot +# use of init=/sbin/halt should work too, but is not supported by all Motherboard +# iam using for boot/reboot the same kernel, the gentoo reboot kernel did not work on my system + + +### default kernel +# + +## 1 ## +menuentry 'VDR - Gentoo' { +set root='(hd0,5)' +linux (hd0,1)/kernel-x.y.z root=/dev/sda5 +} + +# + +# in both example is +# boot partition = /dev/sda1 = (hd0,1) +# data partition = /dev/sda5 + + +# set for the reboot example on top in /etc/conf.d/vdr.shutdown +REBOOT_ENTRY_GRUB="0" diff --git a/etc/conf.d/vdr b/etc/conf.d/vdr index e5b9043..b3d76ba 100644 --- a/etc/conf.d/vdr +++ b/etc/conf.d/vdr @@ -15,10 +15,8 @@ # What IR control should be used. Override the default set at # compile time -# (Usable at vdr version starting from 1.3.28) # allowed values: lirc rcu # default: use no remote -# (up to vdr-1.3.36-r2: use what was selected by use-flag) #IR_CTRL="lirc" ########################################################### @@ -84,7 +82,7 @@ # some people like this :) # allowed values: yes no # default: no -#SHOW_VDR_VERSION=no +#SHOW_VDR_VERSION=yes ########################################################### # Terminal Output / Keyboard Input # -- cgit v1.2.3-65-gdbad