File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,9 @@ if [[ ${branch_name} != "main" ]] && [[ ! ${branch_name} =~ ^[0-9]+\.[0-9]+\.[0-
99
99
if [ ! -d " ${archive} /${architecture} " ]; then
100
100
mkdir -p " ${archive} /${architecture} "
101
101
fi
102
-
102
+ os_name=` (grep -o ' ^NAME=.*' /etc/os-release | cut -f2 -d\" | sed ' s/"//g' )`
103
+ os_version=` (grep -o ' ^VERSION_ID=.*' /etc/os-release | cut -f2 -d\" | sed ' s/"//g' )`
104
+ echo " Platform is ${os_name} , Version: ${os_version} "
103
105
# Print the summary of findings
104
106
echo " Additional ${ADDITIONAL_LIB_NAME} Package version is : ${version} "
105
107
echo " The Fledge required version is : ${fledge_version} "
@@ -132,8 +134,13 @@ if [ "${ADDITIONAL_LIB_NAME}" == "gcp" ]; then
132
134
cp -R --preserve=links /usr/local/lib/libjansson* usr/local/lib
133
135
fi
134
136
if [ " ${ADDITIONAL_LIB_NAME} " == " iec" ]; then
137
+ # For Raspbian bullseye
138
+ if [[ ${os_name} == * " Raspbian" * && ${os_version} == * " 11" * ]]; then
139
+ cp -R --preserve=links /usr/local/lib/arm-linux-gnueabihf/libiec61850* usr/local/lib
140
+ else
141
+ cp -R --preserve=links /usr/local/lib/libiec61850* usr/local/lib
142
+ fi
135
143
cp -R --preserve=links /usr/local/lib/liblib60870* usr/local/lib
136
- cp -R --preserve=links /usr/local/lib/libiec61850* usr/local/lib
137
144
fi
138
145
echo " Done."
139
146
You can’t perform that action at this time.
0 commit comments