CHROOT=$1 SBIN_DIR=$CHROOT/sbin CFG_DIR=$CHROOT/etc BOOT_DIR=$CHROOT/boot USRSBIN_DIR=$CHROOT/usr/sbin MAN_DIR=$CHROOT/usr/man LILO_BIN=cjslilo LILO_DIR=`pwd` LILO_DIR2=`$CHROOT/bin/basename $LILO_DIR` if [ $LILO_DIR2 != $LILO_BIN ] ; then cd $LILO_BIN fi if [ ! -L $BOOT_DIR/boot.b -a -f $BOOT_DIR/boot.b ]; then $CHROOT/bin/mv $BOOT_DIR/boot.b $BOOT_DIR/boot.old; fi if [ -f $BOOT_DIR/boot-menu.b ]; then $CHROOT/bin/mv $BOOT_DIR/boot-menu.b $BOOT_DIR/boot-menu.old; fi if [ -f $BOOT_DIR/boot-text.b ]; then $CHROOT/bin/mv $BOOT_DIR/boot-text.b $BOOT_DIR/boot-text.old; fi if [ -f $BOOT_DIR/chain.b ]; then $CHROOT/bin/mv $BOOT_DIR/chain.b $BOOT_DIR/chain.old; fi if [ -f $BOOT_DIR/os2_d.b ]; then $CHROOT/bin/mv $BOOT_DIR/os2_d.b $BOOT_DIR/os2_d.old; fi $CHROOT/bin/cp boot-text.b boot-menu.b chain.b os2_d.b $BOOT_DIR if [ ! -L $BOOT_DIR/boot.b ]; then $CHROOT/bin/ln -s boot-menu.b $BOOT_DIR/boot.b; fi $CHROOT/bin/cp lilo $SBIN_DIR $CHROOT/bin/cp keytab-lilo.pl $USRSBIN_DIR $CHROOT/bin/cp manPages/lilo.8 $MAN_DIR/man8 $CHROOT/bin/cp manPages/lilo.conf.5 $MAN_DIR/man5 echo "$CHROOT/sbin/lilo is now newly installed, lilo now being run." if [ -z $CHROOT ] ; then CHROOT="/" fi $CHROOT/bin/grep -q lba32 $CHROOT/etc/lilo.conf if [ $? -ne 0 ] ; then echo "Adding lba32 to $CHROOT/etc/lilo.conf" echo "lba32" > /tmp/lba32 $CHROOT/bin/cp $CHROOT/etc/lilo.conf $CHROOT/etc/lilo.conf.save cat /tmp/lba32 $CHROOT/etc/lilo.conf > /tmp/lilo.conf.lba32 $CHROOT/bin/cp -f /tmp/lilo.conf.lba32 $CHROOT/etc/lilo.conf fi $CHROOT/sbin/lilo -r $CHROOT