#!/bin/bash

# 09-09-2005 --- Rajesh G --- Removing unneccesary lines

# Check that kernel loadable modules have started correctly and that previous indicators have been set
# and then set the LED status.

lsmod > /var/log/lsmod_output.txt

numModules=`cat /var/log/lsmod_output.txt | /opt/bin/wc -l`
let "numModules -= 1"

echo $RC1 numModules= $numModules

if [ $numModules -ge 19 ];then
    touch /var/run/hc_sanity1

    # /nn/bin/AddNnuDiagLog -mStartupSequence -lStartupSequence.log -wR -sI -v10905 "System Startup - Kernel Loadable Modules confirmed"
    echo `date` System Startup - Kernel Loadable Modules confirmed >> /var/log/StartupSequence.log
else
    # /nn/bin/AddNnuDiagLog -mStartupSequence -lStartupSequence.log -wR -sI -v10931 "hc_sanity1 failed"
    echo `date` hc_sanity1 failed >> /var/log/StartupSequence.log
fi

exit 0
