moved sysinfo to extutils (#1709)

pull/1710/head
cronyx 2025-02-16 17:21:36 +03:00 committed by GitHub
parent 56e5adcd78
commit e53a034702
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 23 deletions

View File

@ -1,23 +0,0 @@
#!/bin/sh
#
# OpenIPC | version 2025.02.09
#
# Simple script for quick information gathering and troubleshooting
echo
echo "Firmware:"
echo -e " $(grep -e OPENIPC_VERSION /etc/os-release)\n"
echo "Majestic:"
echo -e " internal - $(/rom/usr/bin/majestic -v)"
echo -e " external - $(/usr/bin/majestic -v)\n"
echo "USB devices:"
echo -e " $(lsusb | awk '{print $6}' | tr '\n' ' ')\n"
echo "Memory:"
echo -e " totalmem - $(fw_printenv -n totalmem)\n"
echo "Processor:"
echo -e " detected - $(ipcinfo -ci | tr '\n' '\t')"
echo -e " recorded - $(fw_printenv -n soc)\n"
echo "Sensor:"
echo -e " detected - $(ipcinfo -s)"
echo -e " recorded - $(fw_printenv -n sensor)\n"

View File

@ -46,6 +46,26 @@ case "$CMD" in
fi
;;
sysinfo)
echo ""
echo "Firmware:"
echo -e " $(grep -e OPENIPC_VERSION /etc/os-release)\n"
echo "Majestic:"
echo -e " internal - $(/rom/usr/bin/majestic -v)"
echo -e " external - $(/usr/bin/majestic -v)\n"
echo "USB devices:"
echo -e " $(lsusb | awk '{print $6}' | sort | tr '\n' ' ')\n"
echo "Memory:"
echo -e " totalmem - $(fw_printenv -n totalmem)"
echo -e " osmem - $(fw_printenv -n osmem)\n"
echo "Processor:"
echo -e " detected - $(ipcinfo -ci | tr '\n' '\t')"
echo -e " recorded - $(fw_printenv -n soc)\n"
echo "Sensor:"
echo -e " detected - $(ipcinfo -s)"
echo -e " recorded - $(fw_printenv -n sensor)\n"
;;
*)
;;
esac