Skip to content

Commit

Permalink
feat: add workaround for orangepi images
Browse files Browse the repository at this point in the history
Apply release file workaround for OrangePI based images.

Signed-off-by: Stephan Wendel <[email protected]>
  • Loading branch information
KwadFan committed Oct 2, 2023
1 parent f03ffbf commit 2ae2268
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/modules/mainsailos/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ echo "${DIST_NAME} release ${DIST_VERSION} ($(get_parent))" > /etc/"${DIST_NAME,
### on the original armbian-release file.
### To get around that, we simple symlink mainsailos-release to
### aaaa-release, which is directly read by moonraker.
### Substep 1: Do for armbian releases
if [[ -f "/etc/armbian-release" ]]; then
echo_green "Apply release file workaround ..."
echo_green "Apply release file workaround (armbian based image) ..."
ln -s /etc/"${DIST_NAME,,}"-release /etc/aaaa-release
fi
### END Substep 1
### Substep 2: Apply same for OrangePI bsed Images
if [[ -f "/etc/orangepi-release" ]]; then
echo_green "Apply release file workaround (orangepi based image) ..."
ln -s /etc/"${DIST_NAME,,}"-release /etc/aaaa-release
fi
## END Step 2
Expand Down

0 comments on commit 2ae2268

Please sign in to comment.