Skip to content

Commit

Permalink
support QTS_MINI_VERSION / QTS_MAX_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerlee committed Jul 25, 2018
1 parent 8dcb3f8 commit 2ed479c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions QDK_2.x/scripts/qinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ SYS_QPKG_CONF_FIELD_TIMEOUT="Timeout"
SYS_QPKG_CONF_FIELD_VISIBLE="Visible"
SYS_QPKG_CONF_FIELD_CONTAINER="Container"
SYS_QPKG_CONF_FIELD_EXEC_FILES="Exec_Files"
SYS_QPKG_CONF_FIELD_FW_VER_MIN="FW_Ver_Min"
SYS_QPKG_CONF_FIELD_FW_VER_MAX="FW_Ver_Max"
PREFIX="App Center"
# The following variables are assigned values at run-time.
SYS_HOSTNAME=$($CMD_HOSTNAME)
Expand Down Expand Up @@ -682,6 +684,16 @@ set_qpkg_visible(){
set_qpkg_field $SYS_QPKG_CONF_FIELD_VISIBLE "$QPKG_VISIBLE"
fi
}
set_qpkg_fw_ver_min(){
if [ -n "$QTS_MINI_VERSION" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_FW_VER_MIN "$QTS_MINI_VERSION"
fi
}
set_qpkg_fw_ver_max(){
if [ -n "$QTS_MAX_VERSION" ]; then
set_qpkg_field $SYS_QPKG_CONF_FIELD_FW_VER_MAX "$QTS_MAX_VERSION"
fi
}


############################################################
Expand Down Expand Up @@ -723,6 +735,8 @@ register_qpkg(){
set_qpkg_visible
set_qpkg_container
set_qpkg_exec_file
set_qpkg_fw_ver_min
set_qpkg_fw_ver_max
}

##################
Expand Down

0 comments on commit 2ed479c

Please sign in to comment.