Skip to content

Commit

Permalink
(debug) disable stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lmnotran committed Aug 21, 2023
1 parent ccf1ef0 commit e5e7e66
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions script/otbr-setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -175,50 +175,50 @@ chown -R pi:pi /home/pi/repo
cd /home/pi/repo/ot-br-posix
apt-get update
apt-get install -y --no-install-recommends git python3-pip
su -c "${build_options[*]} script/bootstrap" pi
# su -c "${build_options[*]} script/bootstrap" pi

rm -rf /home/pi/repo/ot-br-posix/third_party/openthread/repo
cp -r /home/pi/repo/openthread /home/pi/repo/ot-br-posix/third_party/openthread/repo
# rm -rf /home/pi/repo/ot-br-posix/third_party/openthread/repo
# cp -r /home/pi/repo/openthread /home/pi/repo/ot-br-posix/third_party/openthread/repo

# Pin CMake version to 3.10.3 for issue https://github.com/openthread/ot-br-posix/issues/728.
# For more background, see https://gitlab.kitware.com/cmake/cmake/-/issues/20568.
apt-get purge -y cmake
pip3 install scikit-build
pip3 install cmake==3.10.3
cmake --version
# apt-get purge -y cmake
# pip3 install scikit-build
# pip3 install cmake==3.10.3
# cmake --version

pip3 install zeroconf
# pip3 install zeroconf

su -c "${build_options[*]} script/setup" pi

if [ "$REFERENCE_RELEASE_TYPE" = "1.2" ]; then
cd /home/pi/repo/
./script/make-commissioner.bash
fi

# nRF Connect SDK related actions
if [ "${REFERENCE_PLATFORM?}" = "ncs" ]; then
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2 get-pip.py
apt-get install -y --no-install-recommends vim wiringpi
pip install wrapt==1.12.1
pip install nrfutil

# add calling of link_dongle.py script at startup to update symlink to the dongle
sed -i '/exit 0/d' /etc/rc.local
grep -qxF 'sudo systemctl restart otbr-agent.service' /etc/rc.local || echo 'sudo systemctl restart otbr-agent.service' >>/etc/rc.local
echo 'exit 0' >>/etc/rc.local

# update testharness-discovery script to fix autodiscovery issue
if [ "$REFERENCE_RELEASE_TYPE" = "1.2" ]; then
sed -i 's/OpenThread_BR/OTNCS_BR/g' /usr/sbin/testharness-discovery
else
sed -i 's/OpenThread_BR/OTNCS13_BR/g' /usr/sbin/testharness-discovery
fi

elif [ "${REFERENCE_PLATFORM?}" = "efr32mg12" ]; then
# update testharness-discovery script to fix autodiscovery issue
sed -i "s/OpenThread_BR/OTS${REFERENCE_RELEASE_TYPE//./}_BR/g" /usr/sbin/testharness-discovery
fi
# if [ "$REFERENCE_RELEASE_TYPE" = "1.2" ]; then
# cd /home/pi/repo/
# ./script/make-commissioner.bash
# fi

# # nRF Connect SDK related actions
# if [ "${REFERENCE_PLATFORM?}" = "ncs" ]; then
# wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
# sudo python2 get-pip.py
# apt-get install -y --no-install-recommends vim wiringpi
# pip install wrapt==1.12.1
# pip install nrfutil

# # add calling of link_dongle.py script at startup to update symlink to the dongle
# sed -i '/exit 0/d' /etc/rc.local
# grep -qxF 'sudo systemctl restart otbr-agent.service' /etc/rc.local || echo 'sudo systemctl restart otbr-agent.service' >>/etc/rc.local
# echo 'exit 0' >>/etc/rc.local

# # update testharness-discovery script to fix autodiscovery issue
# if [ "$REFERENCE_RELEASE_TYPE" = "1.2" ]; then
# sed -i 's/OpenThread_BR/OTNCS_BR/g' /usr/sbin/testharness-discovery
# else
# sed -i 's/OpenThread_BR/OTNCS13_BR/g' /usr/sbin/testharness-discovery
# fi

# elif [ "${REFERENCE_PLATFORM?}" = "efr32mg12" ]; then
# # update testharness-discovery script to fix autodiscovery issue
# sed -i "s/OpenThread_BR/OTS${REFERENCE_RELEASE_TYPE//./}_BR/g" /usr/sbin/testharness-discovery
# fi

sync

0 comments on commit e5e7e66

Please sign in to comment.