summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-03-22 23:27:27 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-03-22 23:27:27 (GMT)
commit8a93e182abe53eb3ead1f65f3706d6d5c6542d9c (patch)
tree058468996e6d54d2dceaef57da91408206c75245
parentfcc27b022b55e98ef9053c33501b7173fc193d55 (diff)
downloadlinhes_pkgbuild-8a93e182abe53eb3ead1f65f3706d6d5c6542d9c.zip
linhes_pkgbuild-8a93e182abe53eb3ead1f65f3706d6d5c6542d9c.tar.gz
linhes_pkgbuild-8a93e182abe53eb3ead1f65f3706d6d5c6542d9c.tar.bz2
Appends heartbeat-cmd="xscreensaver-command -deactivate &" to /home/mythtv/.mplayer/config
-rw-r--r--abs/extra-testing/xscreensaver/xscreensaver.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/extra-testing/xscreensaver/xscreensaver.install b/abs/extra-testing/xscreensaver/xscreensaver.install
new file mode 100644
index 0000000..a64ab36
--- /dev/null
+++ b/abs/extra-testing/xscreensaver/xscreensaver.install
@@ -0,0 +1,30 @@
+# arg 1: the new package version
+post_install() {
+ if grep xscreensaver-command /home/mythtv/.mplayer/config
+ then
+ echo "Nothing to do here..."
+ else
+ echo "heartbeat-cmd=\"xscreensaver-command -deactivate &\"" >> /home/mythtv/.mplayer/config
+fi
+}
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ if grep xscreensaver-command /home/mythtv/.mplayer/config
+ then
+ echo "Nothing to do here..."
+ else
+ echo "heartbeat-cmd=\"xscreensaver-command -deactivate &\"" >> /home/mythtv/.mplayer/config
+fi
+}
+
+# arg 1: the old package version
+post_remove() {
+ grep -v xscreensaver /home/mythtv/.mplayer/config > /tmp/mp-config
+ mv /tmp/mp-config /home/mythtv/.mplayer/config
+ chown mythtv.mythtv /home/mythtv/.mplayer/config
+}
+
+op=$1
+shift
+$op $*