Code backup
This commit is contained in:
2026-05-10 16:59:01 +02:00
commit 368d6fafea
796 changed files with 315310 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#! /bin/sh
HOSTNAME=$(hostname)
IP=$(hostname -I)
MAC=$(cat /sys/class/net/eth0/address)
echo "Device Information:" > file.txt
echo ">HOST:" >> file.txt
echo " $HOSTNAME" >> file.txt
echo ">IP:" >> file.txt
echo " $IP" >> file.txt
echo ">MAC:" >> file.txt
echo " $MAC" >> file.txt
exit 0