#!/bin/sh
# Add exec biostest.sh at boottime:

cat <<__EOF__ > /start_up.sh
#!/bin/bash
# Load CPU modules
/etc/init.d/hotplug start

# Allow autoload modules:
echo -n '/sbin/modprobe' > /proc/sys/kernel/modprobe

# Run Linux Firmwarekit:
biostest.sh

reboot="reboot machine"
drop="drop to shell"

echo Choose:
select a in "\$reboot" "\$drop";
do
   if [ -n "\$a" ]
   then 
       if [ "\$a" = "\$reboot" ]
       then
           exec reboot
           break
       else
           exec /bin/bash
           break
       fi
else
   echo "please make right choice"
fi;
done
__EOF__

chmod 755 /start_up.sh

cat <<__EOF__ >> /etc/inittab
# Run start up script:
1c:2345:once:/usr/bin/openvt -elfw -c 1 -- /usr/bin/env HOME=/root /start_up.sh
__EOF__
