Last change
on this file since 3320 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
463 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # Startup Petris
|
---|
4 | #
|
---|
5 |
|
---|
6 | # Say what we are doing
|
---|
7 | echo -n "Waiting for petris"
|
---|
8 | # Wait for the libraries to become available...
|
---|
9 | while [ ! -f /lib/libncurses.so.5 ] ; do
|
---|
10 | echo -n "."
|
---|
11 | sleep 2
|
---|
12 | done
|
---|
13 | sleep 2
|
---|
14 | # ...then wait for petris
|
---|
15 | which petris > /dev/null
|
---|
16 | while [ $? -ne 0 ] ; do
|
---|
17 | echo -n "."
|
---|
18 | sleep 1
|
---|
19 | which petris > /dev/null
|
---|
20 | done
|
---|
21 | # Keep running petris until it's killed or crashes
|
---|
22 | while [ 0 -eq 0 ] ; do
|
---|
23 | clear
|
---|
24 | sleep 1
|
---|
25 | petris
|
---|
26 | done
|
---|
27 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.