From d7b8191a08234be91a595819dfa555496fac2694 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 22 Nov 2024 15:36:54 -0600 Subject: setup-ssh function, init menu --- init | 56 ++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/init b/init index 159fe6a..3d6b6b3 100755 --- a/init +++ b/init @@ -1,12 +1,52 @@ #!/bin/sh -pacman -Sy --noconfirm -pacman -S --noconfirm tmux git -systemctl start sshd -echo "root:welcome" | chpasswd -hostname=$( +# An archsetup script to welcome user, present options, and setup ssh +# server from the live cd. Functions to installing base arch and setup +# the workstation occur in other scripts, called by this script. +# Run as root after booting the live cd and issuing the following command: +# curl -s https://cjennings.net/archsetup/init | sh -echo ""; echo ""; echo "init complete. " -echo "you may ssh root@$hostname or ssh root@$ipaddress using the password 'welcome'" + + +welcome () { + clear + echo "ArchSetup" + echo "---------" + echo "" + echo "" +} + +setup_ssh () { + systemctl start sshd + + echo "root:welcome" | chpasswd + hostname=$(