File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -110,4 +110,21 @@ if "function minimize_ext" in text:
110110PY
111111fi
112112
113+ # Replace CustomPiOS launcher with upstream arch-fix version
114+ CUSTOMPIOS_SCRIPT=" ${CUSTOM_PI_OS_ROOT} /src/custompios"
115+ CUSTOMPIOS_OVERRIDE_URL=${CUSTOMPIOS_OVERRIDE_URL:- " https://raw.githubusercontent.com/jxmx/CustomPiOS/upstream_archfixes/src/custompios" }
116+ if [ -f " ${CUSTOMPIOS_SCRIPT} " ] && [ -n " ${CUSTOMPIOS_OVERRIDE_URL} " ]; then
117+ TMP_CUSTOMPIOS=" $( mktemp) "
118+ if command -v curl > /dev/null 2>&1 ; then
119+ curl -fsSL " ${CUSTOMPIOS_OVERRIDE_URL} " -o " ${TMP_CUSTOMPIOS} " || true
120+ else
121+ wget -qO " ${TMP_CUSTOMPIOS} " " ${CUSTOMPIOS_OVERRIDE_URL} " || true
122+ fi
123+ if [ -s " ${TMP_CUSTOMPIOS} " ]; then
124+ cp " ${TMP_CUSTOMPIOS} " " ${CUSTOMPIOS_SCRIPT} "
125+ chmod +x " ${CUSTOMPIOS_SCRIPT} "
126+ fi
127+ rm -f " ${TMP_CUSTOMPIOS} "
128+ fi
129+
113130" ${CUSTOM_PI_OS_PATH} " /build_custom_os " $@ "
You can’t perform that action at this time.
0 commit comments