summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-01-04 18:26:24 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-01-04 18:26:24 +0100
commitdb364f412642e09a2177348630c24fa72a640890 (patch)
tree4964b8fe6ea20c001bdf29adcb7e1e5ebbb8551d /etc
parentb97b00074f1a5e35722bd12d7a3ce65f23deab8f (diff)
off: Stop amarok if it's running
Diffstat (limited to 'etc')
-rwxr-xr-xetc/functions/off4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/functions/off b/etc/functions/off
index 12555d3..e5fa150 100755
--- a/etc/functions/off
+++ b/etc/functions/off
@@ -44,6 +44,10 @@ if [[ $force != 1 && $hosts[$HOST] == *:server:* ]] {
return 1
}
+if ps aux | fgrep amarokapp &> /dev/null; then
+ dcop amarok MainApplication-Interface quit
+fi
+
execute uinit stop-all
for line in $(cat /etc/fstab); {
if [[ $line == *[12] ]] {