From db364f412642e09a2177348630c24fa72a640890 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 4 Jan 2009 18:26:24 +0100 Subject: off: Stop amarok if it's running --- etc/functions/off | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/functions/off') 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] ]] { -- cgit v1.2.3