From 010704f198d3486780d3e3ae4db93d6fba448865 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 11:01:37 -0700 Subject: [PATCH] Update environment.sh --- debian/resources/environment.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/resources/environment.sh b/debian/resources/environment.sh index b563498..66b2d6a 100755 --- a/debian/resources/environment.sh +++ b/debian/resources/environment.sh @@ -1,10 +1,14 @@ #!/bin/sh -#check what the CPU and OS are +#operating system details +os_mode='unknown' +os_name=$(lsb_release -is) +os_codename=$(lsb_release -cs) + +#cpu details cpu_name=$(uname -m) cpu_architecture='unknown' cpu_mode='unknown' -os_mode='unknown' if [ .$cpu_name = .'armv7l' ]; then # RaspberryPi 3 is actually armv8l but current Raspbian reports the cpu as armv7l and no Raspbian 64Bit has been released at this time