#!/usr/bin/perl 
#This script handles the kernel patches during the system startup.

use lib "/opt/nortel/base/lib/";

use warnings;
use strict;
use common_variables;
use baselog;
use patchutil::patching;

sub main();

exit(main());

sub main()
{
   my $retval = $ERROR;  
   my $patching = patchutil::patching::new();
   if (not defined($patching))
   {
      baselog($LOG_ERROR, 'Cannot create patching object');
   }
   elsif ($patching->apply_reboot_patches())
   {
      $retval= $OK;
   }
   return $retval;
}

