source: n4d-check-server/trunk/fuentes/debian/n4d-lightdm-server.upstart @ 957

Last change on this file since 957 was 957, checked in by hectorgh, 4 years ago

adding project files

File size: 460 bytes
Line 
1task
2start on starting lightdm
3script
4        COUNT=0
5        TIME=5
6        while true; do
7                if [ -e "/run/n4d-check-server.lock" ]; then
8                        break
9                fi
10                if [ $COUNT -gt 300 ]; then
11                        rm -rf /usr/share/unity-greeter/logo.png
12                        ln -s /usr/share/n4d-check-server/img/lightdm-off.png /usr/share/unity-greeter/logo.png
13                        break
14                fi
15                plymouth message --text="Waiting for server"
16                sleep $TIME
17
18                COUNT=$(( COUNT + TIME ))
19        done
20end script
Note: See TracBrowser for help on using the repository browser.