Changeset 377


Ignore:
Timestamp:
Feb 12, 2006, 2:58:04 AM (14 years ago)
Author:
andree
Message:

Made it so that wait-for-petris picks the correct linker for the
architecture at hand rather than just looking for /lib/ld-linux.so.2
which only exists on i386. This fixes calling petris on amd64 (and
hopefully on ia64, too).

File:
1 edited

Legend:

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

    r30 r377  
    66# Say what we are doing
    77echo -n "Waiting for petris"
     8# Get the right linker for architecture
     9arch=`uname -m`
     10case $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" ;;
     18esac
    819# First wait for the libraries to become available...
    9 while   [ ! -f /lib/libncurses.so.5 -o ! -f /lib/libc.so.6 -o ! -f /lib/ld-linux.so.2 ] ; do
     20while   [ ! -f /lib/libncurses.so.5 -o ! -f /lib/libc.so.6 -o ! -f "$linker" ] ; do
    1021  echo -n "."
    1122  sleep 1
Note: See TracChangeset for help on using the changeset viewer.