Last change
on this file since 868 was 868, checked in by andree, 18 years ago |
Removed check for linker in wait-for-petris. It is too much of a moving
target and ensuring we don't start petris prematurely works without it.
|
-
Property svn:keywords
set to
Id
|
File size:
479 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 -o ! -f /lib/libc.so.6 ] ; do
|
---|
10 | echo -n "."
|
---|
11 | sleep 1
|
---|
12 | done
|
---|
13 | # ...then wait for petris
|
---|
14 | which petris > /dev/null
|
---|
15 | while [ $? -ne 0 ] ; do
|
---|
16 | echo -n "."
|
---|
17 | sleep 1
|
---|
18 | which petris > /dev/null
|
---|
19 | done
|
---|
20 | # Keep running petris until it's killed or crashes
|
---|
21 | while [ $? -eq 0 ] ; do
|
---|
22 | clear
|
---|
23 | sleep 1
|
---|
24 | petris
|
---|
25 | done
|
---|
26 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.