summaryrefslogtreecommitdiff
path: root/etc/functions/off
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/off')
-rwxr-xr-xetc/functions/off6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/functions/off b/etc/functions/off
index 12555d3..9af768a 100755
--- a/etc/functions/off
+++ b/etc/functions/off
@@ -44,7 +44,11 @@ if [[ $force != 1 && $hosts[$HOST] == *:server:* ]] {
return 1
}
-execute uinit stop-all
+if pgrep -x amarokapp &> /dev/null; then
+ execute dcop amarok MainApplication-Interface quit
+fi
+
+execute uinit -o text stop-all
for line in $(cat /etc/fstab); {
if [[ $line == *[12] ]] {
filesystems+=${${(s: :)line}[1]}