WireChem-PROTO/init

11 lines
223 B
Plaintext
Raw Permalink Normal View History

2015-08-28 18:50:57 +02:00
#!/bin/bash
export DISPLAY=":0"
su -c "startx" wirechem &
while true
do
launch=`ps ax|grep init.py|grep python`
if [ "$launch" == "" ]; then
su -c "python /srv/init.py" wirechem
fi
done