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

Last change on this file was 903, checked in by Bruno Cornec, 18 years ago

merge -r862:888 $SVN_M/branches/stable

  • Property svn:keywords set to Id
File size: 463 bytes
RevLine 
[1]1#!/bin/sh
2#
3# Startup Petris
4#
5
6# Say what we are doing
7echo -n "Waiting for petris"
[903]8# Wait for the libraries to become available...
9while [ ! -f /lib/libncurses.so.5 ] ; do
[1]10 echo -n "."
[903]11 sleep 2
[1]12done
[903]13sleep 2
[1]14# ...then wait for petris
15which petris > /dev/null
16while [ $? -ne 0 ] ; do
17 echo -n "."
18 sleep 1
19 which petris > /dev/null
20done
21# Keep running petris until it's killed or crashes
[903]22while [ 0 -eq 0 ] ; do
[1]23 clear
24 sleep 1
25 petris
26done
27exit 0
Note: See TracBrowser for help on using the repository browser.