Re: Shutdown computer after a specific command has been executed
On Thu, 2013-12-12 at 16:21 +0100, Ralf Mardorf wrote:
> On Thu, 2013-12-12 at 19:17 +0400, Reco wrote:
> > Still, if one has desire to blow legs off:
>
> :D
>
> > sudo sh -c "apt-get update && apt-get upgrade -y ; poweroff"
>
> but I would recommend
>
> sudo sh -c "apt-get update && apt-get dist-upgrade -y ; poweroff"
PS: Suggestion: Before running it, burning a live media and reading how
to use chroot, resp. making a backup of the whole Debian install and
reading how to restore it might be a good idea.
Reply to: