Last change
on this file since 2696 was 2445, checked in by Bruno Cornec, 15 years ago |
r3513@localhost: bruno | 2009-10-02 00:09:16 +0200
- Not using busybox for mindi anymore (start - step needed for tests)
|
-
Property svn:keywords
set to
Id
|
File size:
453 bytes
|
Rev | Line | |
---|
[1] | 1 | #!/bin/sh
|
---|
| 2 | #
|
---|
| 3 | # Startup Petris
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | # Say what we are doing
|
---|
| 7 | echo -n "Waiting for petris"
|
---|
[868] | 8 | # Wait for the libraries to become available...
|
---|
[875] | 9 | while [ ! -f /lib/libncurses.so.5 ] ; do
|
---|
[1] | 10 | echo -n "."
|
---|
[875] | 11 | sleep 2
|
---|
[1] | 12 | done
|
---|
[875] | 13 | sleep 2
|
---|
[1] | 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
|
---|
[875] | 22 | while [ 0 -eq 0 ] ; do
|
---|
[1] | 23 | sleep 1
|
---|
| 24 | petris
|
---|
| 25 | done
|
---|
| 26 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.