File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ ROOT_PROC="${ROOT_PATH}/proc"
5656ROOT_ROOT=" ${ROOT_PATH} /root"
5757ROOT_SRV=" ${ROOT_PATH} /srv"
5858ROOT_SYS=" ${ROOT_PATH} /sys"
59+ ROOT_SYS_DEVICES=" ${ROOT_SYS} /devices"
5960ROOT_USR=" ${ROOT_PATH} /usr"
6061
6162[ " ${DISTRO_FAMILY} " = ' Android' ] && ROOT_USR=" ${ROOT_PATH} "
Original file line number Diff line number Diff line change @@ -178,7 +178,9 @@ function get_arch_family() {
178178}
179179
180180function get_device_model() {
181- if [ -f " ${ROOT_PROC} /device-tree/model" ]; then
181+ if [ -f " ${ROOT_SYS_DEVICES} /virtual/dmi/id/product_family" ]; then
182+ cat " ${ROOT_SYS_DEVICES} /virtual/dmi/id/product_family"
183+ elif [ -f " ${ROOT_PROC} /device-tree/model" ]; then
182184 local DEVICE_MODEL=$( cat -A " ${ROOT_PROC} /device-tree/model" )
183185
184186 if echo " ${DEVICE_MODEL} " | grep -q " Raspberry Pi 3" ; then
You can’t perform that action at this time.
0 commit comments