source: MondoRescue/trunk/mindi/rootfs/sbin/wait-for-petris@ 322

Last change on this file since 322 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
7echo -n "Waiting for petris"
8# First wait for the libraries to become available...
9while [ ! -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
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.