From 77162b83ea160b4e6d0446920f79bf597cc44bf7 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Wed, 4 Nov 2020 23:37:04 +0700 Subject: [PATCH] Change boot next before shutdown --- infra/scripts/shutdown.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infra/scripts/shutdown.sh b/infra/scripts/shutdown.sh index 39292133..b7cb1a72 100755 --- a/infra/scripts/shutdown.sh +++ b/infra/scripts/shutdown.sh @@ -1,6 +1,6 @@ #!/bin/sh -ssh root@node0.homelab.local poweroff -ssh root@node1.homelab.local poweroff -ssh root@node2.homelab.local poweroff -ssh root@node3.homelab.local poweroff +ssh root@node0.homelab.local 'efibootmgr --bootnext 0006 && poweroff' +ssh root@node1.homelab.local 'efibootmgr --bootnext 0006 && poweroff' +ssh root@node2.homelab.local 'efibootmgr --bootnext 0006 && poweroff' +ssh root@node3.homelab.local 'efibootmgr --bootnext 0006 && poweroff'