source: MondoRescue/branches/stable/mindi/rootfs/sbin/wait-for-petris@ 868

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
7echo -n "Waiting for petris"
8# Wait for the libraries to become available...
9while [ ! -f /lib/libncurses.so.5 -o ! -f /lib/libc.so.6 ] ; do
10 echo -n "."
11 sleep 1
12done
13# ...then wait for petris
14which petris > /dev/null
15while [ $? -ne 0 ] ; do
16 echo -n "."
17 sleep 1
18 which petris > /dev/null
19done
20# Keep running petris until it's killed or crashes
21while [ $? -eq 0 ] ; do
22 clear
23 sleep 1
24 petris
25done
26exit 0
Note: See TracBrowser for help on using the repository browser.