Ignore:
Timestamp:
Oct 25, 2006, 1:49:52 AM (14 years ago)
Author:
Bruno Cornec
Message:

merge -r862:888 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/rootfs/sbin/wait-for-petris

    r378 r903  
    66# Say what we are doing
    77echo -n "Waiting for petris"
    8 # Get the right linker for architecture
    9 arch=`uname -m`
    10 case $arch in
    11   'ia64')
    12     linker="/lib/ld-linux-ia64.so.2" ;;
    13   'x86_64')
    14     linker="/lib/ld-linux-x86-64.so.2" ;;
    15   *)
    16     # we only run on the above two and IA32, so this must be it
    17     linker="/lib/ld-linux.so.2" ;;
    18 esac
    19 # First wait for the libraries to become available...
    20 while   [ ! -f /lib/libncurses.so.5 -o ! -f /lib/libc.so.6 -o ! -f "$linker" ] ; do
     8# Wait for the libraries to become available...
     9while   [ ! -f /lib/libncurses.so.5 ] ; do
    2110  echo -n "."
    22   sleep 1
     11  sleep 2
    2312done
     13sleep 2
    2414# ...then wait for petris
    2515which petris > /dev/null
     
    3020done
    3121# Keep running petris until it's killed or crashes
    32 while [ $? -eq 0 ] ; do
     22while [ 0 -eq 0 ] ; do
    3323    clear
    3424    sleep 1
Note: See TracChangeset for help on using the changeset viewer.