post_install() {

   local fullversion=`private__calculate_full_version`

   # Copy and symlink the kernel image
   cp arch/i386/boot/bzImage $goboBoot/kernel-$fullversion
   cp System.map $goboBoot/System.map-$fullversion

   private__link_at_system_kernel_boot $fullversion

   private__check_ipw_modules   
   private__check_dependant_modules $goboShared/Compile/Recompile/Linux
}

private__check_ipw_modules () {
   # if IPW2200 is compiled into the kernel or as module and major version of firmware is less than 3
   if [ ! -z "`egrep 'CONFIG_IPW2200=[my]' .config`" -a `Current_Version IPW2200-Firmware | sed 's/^\([0-9]*\).*$/\1/'` -lt 3 ]
   then
      Ask "You need to install firmware for the IPW2200 driver to work. Do you want to install it?" && InstallPackage IPW2200-Firmware 3.0
   fi
   
   # if IPW2100 is compiled into the kernel or as module and minor version of firmware is less than 3
   if [ ! -z "`egrep 'CONFIG_IPW2100=[my]' .config`" -a `Current_Version IPW2100-Firmware | sed 's/^[0-9]*\.\([0-9]*\).*$/\1/'` -lt 3 ]
   then
      Ask "You need to install firmware for the IPW2100 driver to work. Do you want to install it?" && InstallPackage IPW2100-Firmware 1.3
   fi
}
