exec() the final reboot/halt command so there is not an extra level of shell.
Otherwise, the shell will be killed by reboot leading to init restarting it. Probably does not do any harm other than printing a confusing error message, but I have seen cases of minorly corrupt root FSes in BSD images.
Loading
Please register or sign in to comment