Skip to content

Commit

Permalink
fix normal install bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuQI77 committed Dec 9, 2020
1 parent ee4d585 commit ade51ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lora/install_normal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ elif [ "${RAK_GW_MODEL}" = "RAK2287" ] ; then
./install.sh
LORA_DIR_TMP=rak2287_spi
popd
elif [ "${RAK_GW_MODEL}" = "RAK7243" ]; then
elif [ "${RAK_GW_MODEL}" = "RAK7243" ] || [ "${RAK_GW_MODEL}" = "RAK7244" ]; then
pushd rak7243
if [ "${INSTALL_LTE}" = "1" ]; then
cp global_conf_i2c global_conf -rf
Expand All @@ -65,15 +65,16 @@ else
./install.sh
LORA_DIR_TMP=rak2246
else
pushd rak2245
pushd rak7243
cp global_conf_uart global_conf -rf
./install.sh
LORA_DIR_TMP=rak2245
LORA_DIR_TMP=rak7243
fi
popd
fi


if [ -d $SCRIPT_DIR/../lora_gateway ]; then
if [ -d $LORA_DIR_TMP/lora_gateway ]; then
cp $LORA_DIR_TMP/lora_gateway /opt/ttn-gateway/ -rf
fi
cp $LORA_DIR_TMP/packet_forwarder /opt/ttn-gateway/ -rf
Expand All @@ -93,4 +94,5 @@ if [ $rpi_model -eq 3 ] || [ $rpi_model -eq 4 ]; then
fi

systemctl enable ttn-gateway.service
systemctl restart ttn-gateway.service

0 comments on commit ade51ef

Please sign in to comment.