Skip to content
Permalink
Browse files

Add Khadas VIM3 Basic + Pro

  • Loading branch information...
Cat5TV committed Jun 30, 2019
1 parent 2751902 commit 6a226f4b39e86b5645aafce791dcc5fb58158e7a
Showing with 16 additions and 0 deletions.
  1. +16 −0 hw_model.sh
@@ -23,6 +23,8 @@
# MAX_HW_ARCH=10 #This needs to match highest HW_ARCH value in dietpi-obtain_hw_model
#
# - Line1 -
# HW_MODEL 121 Khadas VIM3 Pro
# HW_MODEL 120 Khadas VIM3 Basic
# HW_MODEL 110 RoseapplePi
# HW_MODEL 101 ASUS Tinker Board S
# HW_MODEL 100 ASUS Tinker Board
@@ -461,6 +463,20 @@
HW_MODEL_DESCRIPTION='RoseapplePi'
IMAGE_ADDITIONAL_CREDITS='ARMbian'


# Khadas VIM3 Basic / Pro
elif (( $HW_MODEL == 120 )); then
HW_MODEL_DESCRIPTION='Khadas VIM3 '
IMAGE_ADDITIONAL_CREDITS='balbes150'

MEMTOTAL=$(free | awk '/^Mem:/{print $2}')
if (( $MEMTOTAL > 3000000 )); then
HW_MODEL_DESCRIPTION+='Pro'
HW_MODEL=121
else
HW_MODEL_DESCRIPTION+='Basic'
fi

#ASUS Tinker Board
elif (( $HW_MODEL == 100 )); then

0 comments on commit 6a226f4

Please sign in to comment.
You can’t perform that action at this time.