+if ! [ -r /dev/hda20 ] ; then
+ echo "Creating generic devices in /dev - this might take a while..."
+ cd /dev && MAKEDEV generic
+fi
+
+# assume the first available kernel as our main kernel
+KERNELIMG=$(ls -1 /boot/vmlinuz-* | head -1)
+KERNELVER=${KERNELIMG#/boot/vmlinuz-}