#! /bin/sh ### # run some commands on logon ### # set volume mixer vol 98 pcm 98 line 75 cd 90 line1 75 >/dev/null # prime pipe [ -p "$HOME/log/pipe" ] && \ { echo 'start' > $HOME/log/pipe & tail $HOME/log/pipe > /dev/null & } # search for a given command find_fx() { ps -uwax | egrep -v 'grep|load' | grep "$1" > /dev/null return $? } mkdir -v -p /tmp/gimp-parv # run not already running processes for f in junkbuster #ppp do if ( find_fx $f ) ; then echo ' - already running: ' $f else echo ''; echo ' * starting: ' $f; echo '' case $f in ppp ) ppp -unit0 -auto el ;; *buster* ) for CF in \ buster-z.cf do cf_full="${HOME}/cf/buster/${CF}" [ -f "$cf_full" ] && /usr/local/sbin/junkbuster "$cf_full" & done ;; esac fi done