diff options
author | Michel Stam <m.stam@fugro.nl> | 2014-10-13 16:14:35 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-10-12 13:24:11 +0200 |
commit | 8b27adcf7516fa89ced66c840cfb085f2b6067af (patch) | |
tree | c0e651faa5faa51e989f153361ed280704a36bd9 /utils | |
parent | 79872ea6ca5867631c1ec5405721af12bea818b2 (diff) | |
download | unitd-8b27adcf7516fa89ced66c840cfb085f2b6067af.tar unitd-8b27adcf7516fa89ced66c840cfb085f2b6067af.zip |
Show the shutdown sequence on the active virtual terminal
procd by default writes to /dev/console. When rebooting, this means that the
terminal on which the reboot sequence was started will not see what is going
on. This patch fixes that by reopening stdin, stdout and stderr to the console
device specified on the commandline, /dev/tty0 or /dev/console upon reboot.
Also, due to (probably) pivot-root, /proc/1/fd shows 1-3 pointing to
/console. This patch also fixes that.
Signed-off-by: Michel Stam <m.stam@fugro.nl>
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions