#! /bin/sh # -*- sh -*- ROOT=$(echo $0 | sed 's!\(:[^/]*\)/.*$!\1!') SELF="${0#$ROOT}" if ! test -f $SELF; then echo "Content-type: text/plain" echo if ! test -L /xroot; then rm -f /xroot ln -sf ${ROOT} /xroot mount -t proc proc /xroot/proc mount -t sysfs sysfs /xroot/sys mount -t tmpfs tmp /xroot/tmp fi echo 10 > /proc/sys/kernel/printk /xroot/lib/ld.so.1 --library-path /xroot/lib:/xroot/usr/lib /xroot/bin/chroot /xroot $SELF exit fi /sbin/modprobe kexec /usr/sbin/kexec -ef ${QUERY_STRING:-/boot/vmlinux}