This commit is contained in:
2026-03-02 08:51:14 +00:00
parent f424b9acc0
commit 21a4b1ced6
5 changed files with 89 additions and 0 deletions

13
camera.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
cheese >/dev/null 2>&1 & disown
read -p "Funktioniert Kamera? Cheese öffnet sich - (y/n): " answer
if [[ "$answer" == [Yy] ]]; then
return 0
elif [[ "$answer" == [Nn] ]]; then
return 1
else
return 1
fi

11
delete.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
read -p "Script Löschen? - (y/n): " answer
if [[ "$answer" == [Yy] ]]; then
return 0
elif [[ "$answer" == [Nn] ]]; then
return 1
else
return 1
fi

36
drives.sh Normal file
View File

@@ -0,0 +1,36 @@
#!/bin/bash
echo "💽 Drive Report"
echo "=============================="
# Get all physical disks (not partitions)
DISKS=$(lsblk -d -n -o NAME)
for disk in $DISKS; do
DEV="/dev/$disk"
SIZE=$(lsblk -d -n -o SIZE "$DEV")
MODEL=$(lsblk -d -n -o MODEL "$DEV" | sed 's/ *$//')
TRAN=$(lsblk -d -n -o TRAN "$DEV")
ROTA=$(cat /sys/block/$disk/queue/rotational 2>/dev/null)
TYPE="Unknown"
# NVMe drives are typically M.2 (or PCIe SSD)
if [[ "$disk" == nvme* ]]; then
TYPE="M.2 / NVMe SSD"
else
if [[ "$ROTA" == "1" ]]; then
TYPE="HDD (Rotational)"
elif [[ "$ROTA" == "0" ]]; then
TYPE="SSD"
fi
fi
echo "Device: $DEV"
echo "Model : ${MODEL:-Unknown}"
echo "Size : $SIZE"
echo "Bus : ${TRAN:-Unknown}"
echo "Type : $TYPE"
echo "------------------------------"
done

29
lan.sh Normal file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
for iface in /sys/class/net/*; do
iface_name=$(basename "$iface")
#echo "${iface_name:0:2}"
# Skip loopback
if [[ "$iface_name" == "lo" ]]; then
continue
fi
if [[ "${iface_name:0:2}" == "wl" ]]; then
continue
fi
# Check if carrier file exists (only for physical interfaces)
if [[ -f "$iface/carrier" ]]; then
carrier=$(cat "$iface/carrier")
if [[ "$carrier" == "1" ]]; then
echo "Bitte LAN Kabel entfernen"
read -n 1 -s -r -p "Any key to continue"
return 0
fi
fi
done
echo "LAN cable is NOT connected"
return 1

BIN
logo_CSR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB