Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
neil committed Dec 5, 2023
1 parent c188e18 commit 9fdf747
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ sleep 2


waitForText "$VM_LOGIN_TAG"
sleep 2

inputKeys "string root; enter"
sleep 3

inputKeys "string root ; enter ; enter"

sleep 2

Expand Down Expand Up @@ -135,7 +136,7 @@ $vmsh addSSHHost $osname


ssh $osname sh <<EOF
echo 'StrictHostKeyChecking=accept-new' >.ssh/config
echo 'StrictHostKeyChecking=no' >.ssh/config
echo "Host host" >>.ssh/config
echo " HostName 192.168.122.1" >>.ssh/config
Expand Down Expand Up @@ -186,7 +187,7 @@ ssh "$osname" sh <<EOF
chmod +x /reboot.sh
cat /reboot.sh
if uname -a | grep SunOS >/dev/null; then
crontab -l | { cat; echo "@reboot /reboot.sh"; } | crontab --
crontab -l | { cat; echo "* * * * * /reboot.sh"; } | crontab --
else
crontab -l | { cat; echo "@reboot /reboot.sh"; } | crontab -
fi
Expand Down

0 comments on commit 9fdf747

Please sign in to comment.