Reorga of functions

moved all functions into files
Redid RAM to be more useable
This commit is contained in:
2026-07-14 16:45:44 +02:00
parent 9039344de5
commit 925c624351
9 changed files with 230 additions and 217 deletions

13
model.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
function MODEL(){
local OUT_FILE=$1
MODEL=$(cat /sys/class/dmi/id/product_name)
echo -e "Model:\t$MODEL" >>"$OUT_FILE"
sudo hostnamectl set-hostname "csr-$MODEL"
}
function CPU(){
local OUT_FILE=$1
CPUModel=$(cat /proc/cpuinfo | grep "model name" | head -1 | cut -d: -f2- | sed 's/^[[:space:]]*//' )
echo -e "CPU:\t$CPUModel" >>"$OUT_FILE"
}