File vdr-shutdown.sh of Package vdr
#!/bin/bash next_timer="$1" # time in seconds of next timer until_timer="$2" # time in seconds until next timer (may be negative) timer_channel="$3" # channel recorded by next timer timer_fname="$4" # filename for next recording manual_shutdown="$5" # 1 if shutdown reqested by user test -f /etc/sysconfig/vdr && . /etc/sysconfig/vdr if [ "$VDR_SHUTDOWN" = "fast" ]; then HALT_OPTIONS="-f" fi # you need to add the following line to /etc/sudoers to make this script work # vdr ALL=NOPASSWD: /sbin/halt sudo /sbin/halt $HALT_OPTIONS