cd  /usr/src/linux

while  
  case  $CONFIG_KERNEL in
      y|Y)  if [ "$CONFIG_METHOD" == "xconfig" ]
          then
	      if [ "$DISPLAY" ]
	      then
	          make xconfig
	      else
	          message xconfig could find display falling back to menuconfig
		  make menuconfig
	      fi
	  else
	      make  $CONFIG_METHOD
	  fi

          if  query  "Repeat $CONFIG_METHOD?  "  n
          then  CONFIG_KERNEL=y
          else  CONFIG_KERNEL=n
          fi     ;;
      *)  false  ;;
  esac
do
  true
done


backup_modules()  {

  if    [  -d  /lib/modules/$VERSION      ];  then
    rm   -rf   /lib/modules/$VERSION.old
    mv         /lib/modules/$VERSION      \
               /lib/modules/$VERSION.old
  fi

}


(

  yes  n  |  make  oldconfig
  cp  .config  $CONFIG_CACHE
  make  dep              &&
  make  bzImage          &&
  make  modules          &&
  prepare_install        &&
  backup_modules         &&
  make  modules_install  &&
  cp    arch/i386/boot/bzImage   /boot/vmlinubz-$VERSION &&
  gcc -Wall -Wstrict-prototypes -O Documentation/networking/ifenslave.c -o /sbin/ifenslave

) > $C_FIFO 2>&1
