summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing')
-rw-r--r--abs/extra-testing/mediaserv/mediaserv.install18
-rw-r--r--abs/extra-testing/mediaserv/run2
2 files changed, 16 insertions, 4 deletions
diff --git a/abs/extra-testing/mediaserv/mediaserv.install b/abs/extra-testing/mediaserv/mediaserv.install
index 7a26077..4a9de8e 100644
--- a/abs/extra-testing/mediaserv/mediaserv.install
+++ b/abs/extra-testing/mediaserv/mediaserv.install
@@ -1,8 +1,20 @@
# arg 1: the new package version
+
+
post_install() {
- ln -s /myth/mediaserv /home/mythtv/.mediaserv
- ln -s /myth/pretty /myth/mediaserv/media/tv
- ln -s /myth/video /myth/mediaserv/media/video
+ if [ ! -e /home/mythtv/.mediaserv ]
+ then
+ ln -s /myth/mediaserv /home/mythtv/.mediaserv
+ fi
+
+ if [ ! -e /myth/mediaserv/media/tv ]
+ then
+ ln -s /myth/pretty /myth/mediaserv/media/tv
+ fi
+ if [ ! -e /myth/mediaserv/media/video ]
+ then
+ ln -s /myth/video /myth/mediaserv/media/video
+ fi
chown -R mythtv.mythtv /myth/mediaserv
add_service.sh mediaserv
sv start mediaserv
diff --git a/abs/extra-testing/mediaserv/run b/abs/extra-testing/mediaserv/run
index 82a1705..fbd1c97 100644
--- a/abs/extra-testing/mediaserv/run
+++ b/abs/extra-testing/mediaserv/run
@@ -4,5 +4,5 @@ export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
stat_runit "Starting mediaserv"
-exec su mythtv -c "/usr/bin/mediaserv"
+exec su mythtv -c "/usr/bin/mediaserv" 2>/dev/null
wait