Determine Current Runlevel 

# runlevel
N 5
set `/sbin/runlevel`
runlevel=$2
previous=$1