diff --git a/scripts/remote_switch.sh b/scripts/remote_switch.sh index 037de0c..7dd8c84 100755 --- a/scripts/remote_switch.sh +++ b/scripts/remote_switch.sh @@ -33,3 +33,14 @@ do echo echo done +for host in "${hosts[@]}" +do + fqdn="$host.2li.local" + if [ $host == "nixos-management" ]; then + continue + fi + echo "reboot $fqdn" + ssh -i rsa_key 'sudo reboot' + echo + echo +done