Debian is now detected as 64-bit

This commit is contained in:
Taylor Helsper 2022-05-11 23:40:57 -05:00
parent 947e217e08
commit 9b2b0c345c
3 changed files with 11 additions and 9 deletions

View File

@ -0,0 +1,2 @@
/etc/torrc.d/ r,
/etc/torrc.d/** r,

View File

@ -14,7 +14,7 @@ IS_32_BIT=0
IS_64_BIT=0
DEVICE_TYPE="unknown"
MODEL=$(tr -d '\0' < /proc/device-tree/model) || MODEL="unknown"
uname -a | grep amd64 && IS_X86=1 || true
uname -a | grep amd64 && IS_X86=1 && IS_64_BIT=1 || true
if [[ $MODEL == *"Rock64"* ]]; then
IS_ARMBIAN=1
IS_ROCK64=1

View File

@ -29,7 +29,7 @@ IS_64_BIT=0
IS_UNKNOWN=0
DEVICE_TYPE="unknown"
MODEL=$(cat /proc/device-tree/model) || IS_UNKNOWN=1
uname -a | grep amd64 && IS_X86=1 && IS_UNKNOWN=0 || true
uname -a | grep amd64 && IS_X86=1 && IS_64_BIT=1 && IS_UNKNOWN=0 || true
if [[ $MODEL == *"Rock64"* ]]; then
IS_ARMBIAN=1
IS_ROCK64=1
@ -918,13 +918,6 @@ touch /home/bitcoin/.mynode/install_dojo
# SKIPPING WARDEN - OPTIONAL APP
# Mark dynamic applications as defalt application
# ...
# Upgrade Dyanmic Applications
mynode-manage-apps upgrade
# Make sure we are using legacy iptables
update-alternatives --set iptables /usr/sbin/iptables-legacy || true
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy || true
@ -939,6 +932,13 @@ sync
sleep 1
# Mark dynamic applications as defalt application
# ... (none yet)
# Upgrade Dyanmic Applications (must be done after file installation)
# mynode-manage-apps upgrade # not yet working during setup process
# Enable fan control
if [ $IS_ROCKPRO64 = 1 ]; then
systemctl enable fan_control