-
Notifications
You must be signed in to change notification settings - Fork 38
/
sysinfo.sh
executable file
·31 lines (31 loc) · 1 KB
/
sysinfo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
#
# Move this to your $HOME directory, and modify the FOLDER_NAME variable below accordingly, if needed
# Compare to rpi.status.sh ;)
#
echo -e "All Raspberry Pi Models' description available at https://www.raspberrypi.org/products/"
echo -e ""
FOLDER_NAME=~/raspberry-coffee/common-utils
ARCHIVE_NAME=${FOLDER_NAME}/build/libs/common-utils-1.0-all.jar
if [[ ! -f ${ARCHIVE_NAME} ]]; then
ARCHIVE_NAME=${FOLDER_NAME}/build/libs/common-utils-1.0.jar
fi
if [[ -f ${ARCHIVE_NAME} ]]; then
echo -e "(Using jar ${ARCHIVE_NAME})"
java -cp ${ARCHIVE_NAME} utils.SystemUtils --minimal --no-free-mem
else
pushd ${FOLDER_NAME}
# Will run a build before a run
../gradlew run -P--minimal -P--no-free-mem
popd
fi
#
echo -e "-------------------------"
echo -e "uname -m: $(uname -m)"
echo -e "-------------------------"
lscpu
echo -e "-------------------------"
echo -e "Architecture: $(getconf LONG_BIT) bits"
echo -e "-------------------------"
file /lib/systemd/systemd
echo -e "-------------------------"