def _get_runlevel():
 out = __salt__['cmd.run']('runlevel')
 if ('unknown' in out):
  return '2'
 else:
  return out.split()[1]

def _get_runlevel ( ) : out = __salt__ [ 'cmd.run' ] ( 'runlevel' ) if ( 'unknown' in out ) : return '2' else : return out . split ( ) [ 1 ]
returns the current runlevel .