Incorporated changes for release 1.3.4

This commit is contained in:
2026-02-24 20:28:42 -05:00
parent 09155561f8
commit eb8829af47
93 changed files with 5860 additions and 22 deletions

36
RPiSetup/common.sh Normal file
View File

@@ -0,0 +1,36 @@
#!/bin/bash
# common.sh
# OpenDRS Online Discrepancy Reporting System
# Copyright (C) 2023 Rod Wright
# SPDX-License-Identifier: GPL-2.0
function getmodel() {
# Determine the model of Raspberry Pi
# Takes no arguments.
echo -n "Raspberry Pi model is: "
rpimodeltxt=$(tr -d '\0' < /proc/device-tree/model)
echo $rpimodeltxt
echo $rpimodeltxt|grep -q "Raspberry Pi 3"
if [ $? -eq 0 ]
then
ismodel3="true"
fi
}
function getarch() {
# Determine the architecture of Raspberry Pi OS
# Takes no arguments.
echo -n "Architecture is: "
arch_32_64=`getconf LONG_BIT`
echo "$arch_32_64 bit"
}
function getosrelease() {
# Determine the Raspberry Pi OS release name
# Takes no arguments
echo -n "OS Release version is: "
os_rel_ver=`grep VERSION_CODENAME /etc/os-release | cut -d "=" -f2`
echo $os_rel_ver
}