]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
sysvinit/inittab: adjust shutdown
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 20 Nov 2014 19:18:40 +0000 (16:18 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 20 Nov 2014 22:09:44 +0000 (23:09 +0100)
commitf785130d68be3fcdaf61176ce2cb3afa699b5469
treef6b7867326ce89e7550640a9506e6831a41f0e58
parent7e1728bb05aa6fd4e571fde91fab4c082b1381c4
sysvinit/inittab: adjust shutdown

The previous shutdown sequence was basically a no-op, it did't call rcK
to stop anything and dumped users back into shell.
So do the proper thing by calling rcK for levels 0 (halt) and 6
(reboot), then swapoff, then remount ro.
After that call halt for 0 and reboot for 6.

Also make 3 the default runlevel as in normal distributions, for all
intents and purposes it changes nothing except aesthetics/convention.

And make the labels a context sequence rather than just a short form
of the actions which IMHO looks horrible.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/sysvinit/inittab