diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-04 18:26:24 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-04 18:26:24 +0100 |
commit | db364f412642e09a2177348630c24fa72a640890 (patch) | |
tree | 4964b8fe6ea20c001bdf29adcb7e1e5ebbb8551d /etc | |
parent | b97b00074f1a5e35722bd12d7a3ce65f23deab8f (diff) |
off: Stop amarok if it's running
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/functions/off | 4 |
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] ]] { |