From e7303130d65f45b20c0ae9ca865bd76f8c2b02ee Mon Sep 17 00:00:00 2001 From: Fabio Belavenuto Date: Thu, 25 Aug 2022 14:42:45 -0300 Subject: [PATCH] Link to cache partition for ARPL model-config and patch --- files/board/arpl/overlayfs/opt/arpl/init.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/files/board/arpl/overlayfs/opt/arpl/init.sh b/files/board/arpl/overlayfs/opt/arpl/init.sh index 5dd27c8c..b19f1057 100755 --- a/files/board/arpl/overlayfs/opt/arpl/init.sh +++ b/files/board/arpl/overlayfs/opt/arpl/init.sh @@ -50,6 +50,17 @@ ln -s "${CACHE_PATH}/ssh" "/etc/ssh" rm -rf ~/.bash_history ln -s ${CACHE_PATH}/.bash_history ~/.bash_history +# Check if exists directories into P3 partition, if yes remove and link it +if [ -d "${CACHE_PATH}/model-configs" ]; then + rm -rf "${MODEL_CONFIG_PATH}" + ln -s "${CACHE_PATH}/model-configs" "${MODEL_CONFIG_PATH}" +fi + +if [ -d "${CACHE_PATH}/patch" ]; then + rm -rf "${PATCH_PATH}" + ln -s "${CACHE_PATH}/patch" "${PATCH_PATH}" +fi + # Get first MAC address MAC=`ip link show eth0 | awk '/ether/{print$2}'` MACF=`echo ${MAC} | sed 's/://g'`