feat: add SMART monitoring terminal

This commit is contained in:
desertwitch
2026-02-17 08:41:41 +01:00
parent fd8eb7b898
commit e87c0f7a49
10 changed files with 67 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ rcS:12345:wait:/etc/init.d/rcS
sole::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
1:3:respawn:/sbin/getty 38400 tty1 -n -l /usr/bin/nwipe_launcher
2:3:respawn:/sbin/getty 38400 tty2 -n -l /bin/sh
# tty3 is reserved for the regular console
4:3:respawn:/sbin/getty 38400 tty4 -n -l /usr/bin/smartdmt_launcher
# Stuff to do for the 3-finger salute
#ca::ctrlaltdel:/sbin/reboot

View File

@@ -0,0 +1,18 @@
#!/bin/sh
trap "echo" INT
sleep 2
if [ -x /usr/bin/smartdmt ]; then
while true; do
/usr/bin/smartdmt
echo "Press ENTER to restart SMART Device Monitoring Terminal..."
read dummy
clear
done
else
while true; do
echo "SMART Device Monitoring Terminal is not available in this version of ShredOS."
read dummy
clear
done
fi