summaryrefslogtreecommitdiffstats
path: root/abs/extra/x11vnc/x11vnc.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-31 00:29:50 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-31 00:29:50 (GMT)
commiteafed5ee7379665aa0edd44ffe60dd4b039399ad (patch)
tree2f2446b68cc093d586f4015259bd3cfc06177416 /abs/extra/x11vnc/x11vnc.install
parent69728241bca2e2e98ce3eabdc6e5e312b9086358 (diff)
downloadlinhes_pkgbuild-eafed5ee7379665aa0edd44ffe60dd4b039399ad.zip
linhes_pkgbuild-eafed5ee7379665aa0edd44ffe60dd4b039399ad.tar.gz
linhes_pkgbuild-eafed5ee7379665aa0edd44ffe60dd4b039399ad.tar.bz2
x11vnc: remove references to /home/mythtv
Diffstat (limited to 'abs/extra/x11vnc/x11vnc.install')
-rw-r--r--abs/extra/x11vnc/x11vnc.install10
1 files changed, 5 insertions, 5 deletions
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
}