Changeset 903 in MondoRescue for trunk/mindi/rootfs/sbin/wait-for-petris
- Timestamp:
- Oct 25, 2006, 1:49:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mindi/rootfs/sbin/wait-for-petris
r378 r903 6 6 # Say what we are doing 7 7 echo -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... 9 while [ ! -f /lib/libncurses.so.5 ] ; do 21 10 echo -n "." 22 sleep 111 sleep 2 23 12 done 13 sleep 2 24 14 # ...then wait for petris 25 15 which petris > /dev/null … … 30 20 done 31 21 # Keep running petris until it's killed or crashes 32 while [ $?-eq 0 ] ; do22 while [ 0 -eq 0 ] ; do 33 23 clear 34 24 sleep 1
Note:
See TracChangeset
for help on using the changeset viewer.