From a268229c410d9c89bf5220ec800e9bd07c4c5700 Mon Sep 17 00:00:00 2001 From: bmixed Date: Tue, 14 Apr 2026 22:37:29 +0000 Subject: [PATCH] Upload files to "/" --- sp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sp diff --git a/sp b/sp new file mode 100644 index 0000000..417563f --- /dev/null +++ b/sp @@ -0,0 +1,21 @@ +#!/bin/bash + +echo "SystemProfile" +sudo dmidecode -q +echo 'Press enter for report (html)' +echo 'Press ctrl+C to exit' +read -n1 +sudo lshw -html > $(hostname).html +xdg-open ./$(hostname).html +echo html wrote to $(hostname).html +echo 'Press enter upload report' +echo 'Press ctrl+C to exit' +read -n1 +echo Server: +read s +echo User: +read u +scp ./$(hostname).html $u@$s:/home/$u/$(hostname).html +echo 'Done.' +read -n1 +clear