annotate bin/setup-X.sh @ 363:89121bfe12ff

add u
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 08 Jul 2013 10:34:41 -0700
parents d0da972238d0
children 0e99d3a68066
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
360
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 #!/bin/bash
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 # daemons
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4 for i in nm-applet gkrellm diodon
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 do
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 if ! ps aux | grep ${i} | grep -v 'grep'
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 then
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 echo "not running: $i"
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9 if which ${i}
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 then
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 ${i} &
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 fi
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 fi
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 done