Ubuntu HD VDR mittels Xine und VDPAU - PowerOff Kernel

Aus VDR Wiki
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

40_custom anpassen

cd /etc/grub.d/
sudo vi 40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "PowerOff" {
saved_entry=0
save_env saved_entry
halt
}

grub anpassen

cd /etc/default/
sudo vi grub
#GRUB_DEFAULT=0
GRUB_DEFAULT=saved
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
sudo update-grub

vdrpoweroff.sh Skript anpassen

cd /usr/local/bin/
vi vdrpoweroff.sh
#!/bin/bash
sudo /usr/sbin/grub-reboot PowerOff
sudo /sbin/reboot

visudo anpassen

sudo visudo
vdruser ALL=(ALL) NOPASSWD: /usr/local/bin/vdrpoweroff.sh,/sbin/poweroff,/usr/sbin/grub-reboot,/sbin/reboot