#!/bin/sh # # Maximilian Wilhelm # -- Fri, 14 Apr 2023 22:05:24 +0200 # while ! salt-call test.ping >/dev/null 2>&1; do echo "Please accept minion key on Salt master." sleep 10 done echo "Looks like you did, cool, let's get started!" echo ################################################################################ # Set up screeen and SSH # ################################################################################ echo "Syncing modules..." salt-call saltutil.sync_all echo "Configuring screen and SSH..." salt-call state.apply screen,ssh echo "Backing up SSH keys..." cp -a /etc/ssh /opt cat << EOF SSH configured, you should now be able to SSH into this device (as root). EOF ip -br a echo echo echo "Running highstate..." salt-call state.highstate systemctl disable ffho-first-boot.service