summaryrefslogtreecommitdiff
path: root/scripts/vdrshutdown.sh
blob: e63e2acab29383e6f3eb7aff413144331ff18d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

#
# This script executes the script $sleephalt in the backgroud
# an gives the control back to vdr
#
# $sleephalt handles the shutdown with or without nvram-wakeup
# and waits until <plugins-dir>/encode.vdrrip is deleted
#
# It is written by herbert attenberger <herbsl@a-land.de>
#

sleephalt="/usr/local/bin/sleephalt.sh"

if [ -x $sleephalt ]
then
  $sleephalt $1 &
else
  echo 
  echo "script $sleephalt not found"
  echo
fi

exit