mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 21:49:52 +07:00
arc: cleanup
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
cc429e4ea5
commit
39f119c123
@ -724,16 +724,9 @@ function make() {
|
||||
# Check for Arc Patch
|
||||
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
|
||||
ARCPATCH="$(readConfigKey "arc.patch" "${USER_CONFIG_FILE}")"
|
||||
if [ -n "${ARCCONF}" ] && [ "${ARCPATCH}" == "true" ]; then
|
||||
if readConfigMap "addons" "${USER_CONFIG_FILE}" | grep -q "sspatch"; then
|
||||
writeConfigKey "addons.sspatch" "true" "${USER_CONFIG_FILE}"
|
||||
fi
|
||||
elif [ -z "${ARCCONF}" ] || [ "${ARCPATCH}" == "false" ]; then
|
||||
if [ -z "${ARCCONF}" ] || [ "${ARCPATCH}" == "false" ]; then
|
||||
deleteConfigKey "addons.amepatch" "${USER_CONFIG_FILE}"
|
||||
deleteConfigKey "addons.arcdns" "${USER_CONFIG_FILE}"
|
||||
if readConfigMap "addons" "${USER_CONFIG_FILE}" | grep -q "sspatch"; then
|
||||
writeConfigKey "addons.sspatch" "false" "${USER_CONFIG_FILE}"
|
||||
fi
|
||||
fi
|
||||
# Max Memory for DSM
|
||||
RAMCONFIG="$((${RAMTOTAL} * 1024 * 2))"
|
||||
|
@ -243,6 +243,7 @@ elif [ "${DIRECTBOOT}" == "false" ]; then
|
||||
echo -e "\033[1;37mDetected ${ETHN} NIC:\033[0m"
|
||||
fi
|
||||
echo
|
||||
[ ! -f /var/run/dhcpcd/pid ] && /etc/init.d/S41dhcpcd restart >/dev/null 2>&1 || true
|
||||
sleep 3
|
||||
for ETH in ${ETHX}; do
|
||||
COUNT=0
|
||||
|
@ -123,7 +123,6 @@ writeConfigKey "device.nic" "${ETHN}" "${USER_CONFIG_FILE}"
|
||||
# No network devices
|
||||
echo
|
||||
[ ${ETHN} -le 0 ] && die "No NIC found! - Loader does not work without Network connection."
|
||||
[ ! -f /var/run/dhcpcd/pid ] && /etc/init.d/S41dhcpcd restart >/dev/null 2>&1 || true
|
||||
|
||||
# Get the VID/PID if we are in USB
|
||||
VID="0x46f4"
|
||||
@ -172,6 +171,7 @@ BOOTIPWAIT="$(readConfigKey "bootipwait" "${USER_CONFIG_FILE}")"
|
||||
echo -e "\033[1;37mDetected ${ETHN} NIC:\033[0m"
|
||||
IPCON=""
|
||||
echo
|
||||
[ ! -f /var/run/dhcpcd/pid ] && /etc/init.d/S41dhcpcd restart >/dev/null 2>&1 || true
|
||||
sleep 3
|
||||
for ETH in ${ETHX}; do
|
||||
COUNT=0
|
||||
|
Loading…
Reference in New Issue
Block a user