init: fix run level switching, tidy up stuff we don't need to do
authorAlan Cox <alan@linux.intel.com>
Mon, 13 Nov 2017 01:19:08 +0000 (01:19 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 13 Nov 2017 01:19:08 +0000 (01:19 +0000)
commit82d46a01366a0385b33861875fe345f061e9dbd8
treec59fb750e8cf0814e392271e73e1e98d567c463a
parent704c787b8c852acea33842744897fea41ca2fb32
init: fix run level switching, tidy up stuff we don't need to do

There's no pint trying to create a new utmp - the root fs will be r/o at
that point

The extra fd manipulation is guaranteed not required

No point doing work to change from run level to the same one !

The main change however is to set the runlevel before we task switch
Applications/util/init.c