view bin/setup-X.sh @ 376:3f84a96cccf6

minor improvements; need a thought or two for the real answer
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 24 Jul 2013 06:59:09 -0700
parents d0da972238d0
children 0e99d3a68066
line wrap: on
line source

#!/bin/bash

# daemons
for i in nm-applet gkrellm diodon
do
    if ! ps aux | grep ${i} | grep -v 'grep'
    then
        echo "not running: $i"
        if which ${i}
        then
            ${i} &
        fi
    fi
done