vdradmin: Change VDR configuration directory.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 27 Mar 2013 13:57:03 +0000 (14:57 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Apr 2013 11:54:06 +0000 (13:54 +0200)
config/vdradmin/install-ipfire.sh
config/vdradmin/vdradmind.conf
src/paks/vdradmin/update.sh

index 8eceaac1869f791c635d0751ebfbd38b538d2948..9a6655b7b7a2d1b6749af17fb6d5bd50d0679a0b 100755 (executable)
@@ -18,7 +18,7 @@ CACHEDIR=${CACHEDIR:-$DESTDIR/var/cache/vdradmin}
 PIDFILE=${PIDFILE:-$DESTDIR/var/run/vdradmind.pid}
 VIDEODIR=${VIDEODIR:-/var/video}
 EPGIMAGES=${EPGIMAGES:-$VIDEODIR/epgimages}
-VDRCONF=${VDRCONF:-/opt/vdr/etc}
+VDRCONF=${VDRCONF:-/etc/vdr}
 
 function usage()
 {
index 226b9cc27bf5c348300454b1110c11947f1387c3..a3b2d485a9c68e4a4fd6643f74c5b1419b0212d9 100644 (file)
@@ -81,7 +81,7 @@ TV_MIMETYPE = video/x-mpegurl
 TV_SIZE = half
 USERNAME = vdradmin
 USERNAME_GUEST = guest
-VDRCONFDIR = /opt/vdr/etc
+VDRCONFDIR = /etc/vdr
 VDR_HOST = localhost
 VDR_PORT = 6419
 VIDEODIR = /var/video
index ec21a577d75d76094e80b8f2104649a4e2753c45..72d3185448af2212994a5b8c3b57d09996b046ef 100644 (file)
@@ -30,7 +30,8 @@
 stop_service ${NAME}
 
 sed -i /etc/vdradmin/vdradmind.conf \
-       -e "s/^LANG = .*/LANG = en_US.utf8/g" \
-       -e "s/^VDR_PORT = .*/VDR_PORT = 6419/g"
+       -e "s@^LANG = .*@LANG = en_US.utf8@g" \
+       -e "s@^VDR_PORT = .*@VDR_PORT = 6419@g" \
+       -e "s@^VDRCONFDIR = .*@VDRCONFDIR = /etc/vdr@g"
 
 start_service ${NAME}