mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 21:49:52 +07:00
arc: cleanup more
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
cf2daa9807
commit
5fa2c3a1c6
@ -413,8 +413,6 @@ function arcPatch() {
|
|||||||
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
|
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
|
||||||
# Check for Custom Build
|
# Check for Custom Build
|
||||||
if [ "${ARCMODE}" == "automated" ]; then
|
if [ "${ARCMODE}" == "automated" ]; then
|
||||||
[ -z "${ARCCONF}" ] && checkHardwareID || true
|
|
||||||
sleep 1
|
|
||||||
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
|
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
|
||||||
[ -n "${ARCCONF}" ] && SN="$(generateSerial "${MODEL}" "true")" || SN="$(generateSerial "${MODEL}" "false")"
|
[ -n "${ARCCONF}" ] && SN="$(generateSerial "${MODEL}" "true")" || SN="$(generateSerial "${MODEL}" "false")"
|
||||||
[ -n "${ARCCONF}" ] && writeConfigKey "arc.patch" "true" "${USER_CONFIG_FILE}" || writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
|
[ -n "${ARCCONF}" ] && writeConfigKey "arc.patch" "true" "${USER_CONFIG_FILE}" || writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
|
||||||
@ -429,8 +427,6 @@ function arcPatch() {
|
|||||||
resp=$(cat ${TMP_PATH}/resp)
|
resp=$(cat ${TMP_PATH}/resp)
|
||||||
[ -z "${resp}" ] && return 1
|
[ -z "${resp}" ] && return 1
|
||||||
if [ ${resp} -eq 1 ]; then
|
if [ ${resp} -eq 1 ]; then
|
||||||
[ -z "${ARCCONF}" ] && checkHardwareID || true
|
|
||||||
sleep 1
|
|
||||||
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
|
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
|
||||||
[ -n "${ARCCONF}" ] && SN="$(generateSerial "${MODEL}" "true")" || SN="$(generateSerial "${MODEL}" "false")"
|
[ -n "${ARCCONF}" ] && SN="$(generateSerial "${MODEL}" "true")" || SN="$(generateSerial "${MODEL}" "false")"
|
||||||
[ -n "${ARCCONF}" ] && writeConfigKey "arc.patch" "true" "${USER_CONFIG_FILE}" || writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
|
[ -n "${ARCCONF}" ] && writeConfigKey "arc.patch" "true" "${USER_CONFIG_FILE}" || writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user