aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/autostart12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/autostart b/bin/autostart
index f1f4f6e..8a9db47 100755
--- a/bin/autostart
+++ b/bin/autostart
@@ -6,11 +6,19 @@ export XAUTHORITY=/home/dave/.Xauthority
KERNEL_NAME=$(uname -r)
if [[ "$KERNEL_NAME" != *rt* ]]; then
- dropbox start &
- owncloud &
+ pid=$(pidof dropbox)
+ re='^[0-9]+$'
+ if [[ $pid =~ $re ]];then
+ echo "Dropbox alread running. Restarting..."
+ dropbox stop && dropbox start &
+ else
+ dropbox start &
+ fi
+ pulseaudio --start &
nm-applet &
firewall-applet &
urxvt &
+ owncloud &
else
pulseaudio --kill &
qjackctl &