shutdown: use argv 0 to determine default action.
authorDavin McCall <davmac@davmac.org>
Mon, 5 Nov 2018 11:05:47 +0000 (11:05 +0000)
committerDavin McCall <davmac@davmac.org>
Mon, 5 Nov 2018 11:05:47 +0000 (11:05 +0000)
commit44bca4f83d837cc5a044af6911d6cb560962b8ae
tree5607dcab4039e728c7cfdae744e81f8edb66982e
parentcb9075f001a508245e3f34c24fd86283a53c2316
shutdown: use argv 0 to determine default action.

If called as "reboot", default action is to reboot, otherwise to halt
and power down.
doc/manpages/shutdown.8
src/includes/dinit-util.h
src/shutdown.cc