summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/x11vnc/PKGBUILD2
-rw-r--r--abs/extra/x11vnc/x11vnc.install10
2 files changed, 6 insertions, 6 deletions
diff --git a/abs/extra/x11vnc/PKGBUILD b/abs/extra/x11vnc/PKGBUILD
index 5672669..2ee8284 100644
--- a/abs/extra/x11vnc/PKGBUILD
+++ b/abs/extra/x11vnc/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=x11vnc
pkgver=0.9.12
-pkgrel=2
+pkgrel=3
pkgdesc="a VNC server for real X displays"
arch=("i686" "x86_64")
license=("GPL2")
diff --git a/abs/extra/x11vnc/x11vnc.install b/abs/extra/x11vnc/x11vnc.install
index 63af505..97b6048 100644
--- a/abs/extra/x11vnc/x11vnc.install
+++ b/abs/extra/x11vnc/x11vnc.install
@@ -1,11 +1,11 @@
post_install() {
- if [ -f /home/mythtv/.fluxbox/apps ] ; then
- if [ -n `/bin/grep x11vnc /home/mythtv/.fluxbox/apps` ] ; then
+ if [ -f $MYTHHOME/.fluxbox/apps ] ; then
+ if [ -n `/bin/grep x11vnc $MYTHHOME/.fluxbox/apps` ] ; then
echo ""
echo "==> Adding x11vnc to user mythtv's ~/.fluxbox/apps"
echo ""
# Add x11vnc to ~/mythtv/.fluxbox/apps before LinHES-run
- sed -i '/LinHES-run/ i [startup] {x11vnc -nap -wait 50 -passwd mythtv -display :0 -forever -o ~/.vnc/x11vnc.log -bg}' /home/mythtv/.fluxbox/apps
+ sed -i '/LinHES-run/ i [startup] {x11vnc -nap -wait 50 -passwd mythtv -display :0 -forever -o ~/.vnc/x11vnc.log -bg}' $MYTHHOME/.fluxbox/apps
else
echo ""
echo "==> x11vnc startup line already present in user"
@@ -20,7 +20,7 @@ pre_remove() {
PID=`pidof -o %PPID /usr/bin/x11vnc`
[ -n "$PID" ] && kill $PID
# Remove line in .fluxbox/apps
- if [ -f /home/mythtv/.fluxbox/apps ] ; then
- sed -i '/x11vnc/d' /home/mythtv/.fluxbox/apps
+ if [ -f $MYTHHOME/.fluxbox/apps ] ; then
+ sed -i '/x11vnc/d' $MYTHHOME/.fluxbox/apps
fi
}