]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/w_scan-ipfire.patch
script to start vdr with softdevice
[people/pmueller/ipfire-2.x.git] / src / patches / w_scan-ipfire.patch
1 --- w_scan_start.sh 2008-01-05 19:58:44.000000000 +0100
2 +++ w_scan_start.sh 2008-04-17 12:38:04.000000000 +0200
3 @@ -10,7 +10,7 @@
4 #######################################################
5
6 umask 022
7 -export PATH="$(pwd):/bin:/usr/bin:/sbin:/usr/sbin"
8 +export PATH="$(pwd):/bin:/usr/bin:/sbin:/usr/sbin:/opt/vdr/bin"
9 DATE="$(date +%Y)$(date +%m)$(date +%d)" # $DATE == "YYYYMMDD", i.e. 20060710
10 W_SCAN=$(which w_scan 2>/dev/null)
11 UDEVSTART=$(which udevstart)
12 @@ -224,7 +224,7 @@
13 echo "Checking for ct-vdr style startscript.."
14 if [ -e /etc/init.d/vdr ]; then # c't-vdr
15 echo_yes
16 - $(/etc/init.d/vdr stop)
17 + /etc/init.d/vdr stop
18 stopped=true
19 else
20 echo_no
21 @@ -692,9 +692,9 @@
22 echo ""
23 echo -e -n $NORMAL
24 else
25 - if [ -d /etc/vdr ]; then
26 - mv /etc/vdr/channels.conf /etc/vdr/channels.conf-backup$DATE
27 - cp channels.conf-$DATE /etc/vdr/channels.conf
28 + if [ -d /opt/vdr/etc ]; then
29 + mv /opt/vdr/etc/channels.conf /opt/vdr/etc/channels.conf-backup$DATE
30 + cp channels.conf-$DATE /opt/vdr/etc/channels.conf
31 fi
32 if [ -d /var/lib/vdr ]; then
33 mv /var/lib/vdr/channels.conf /var/lib/vdr/channels.conf-backup$DATE