Last change
on this file since 2391 was 30, checked in by bcornec, 19 years ago |
Id property added on files to allow for better conf. management
|
-
Property svn:keywords
set to
Id
|
File size:
512 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # Startup Petris
|
---|
4 | #
|
---|
5 |
|
---|
6 | # Say what we are doing
|
---|
7 | echo -n "Waiting for petris"
|
---|
8 | # First wait for the libraries to become available...
|
---|
9 | while [ ! -f /lib/libncurses.so.5 -o ! -f /lib/libc.so.6 -o ! -f /lib/ld-linux.so.2 ] ; 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.