WireChem-PROTO/init

11 lines
223 B
Bash
Executable File

#!/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