Merge pull request #1825 from armbian/helios4-fix-modules

[ mvebu-helios4 ] Fix helios4 module includes
This commit is contained in:
Jannis 2020-03-02 21:05:06 +01:00 committed by GitHub
commit 57fcb64b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,13 +81,13 @@ family_tweaks_bsp()
# add custom motd default conf file
install -m 644 $SRC/packages/bsp/helios4/armbian-motd $destination/etc/default/
# create modules file
# create modules file
if [[ $BRANCH == dev && -n $MODULES_DEV ]]; then
tr ' ' '\n' <<< "$MODULES_DEV" > "${destination}"/etc/modules
elif [[ $BRANCH == next || $BRANCH == dev ]]; then
tr ' ' '\n' <<< "$MODULES_NEXT" > "${destination}"/etc/modules
elif [[ $BRANCH == current || $BRANCH == dev ]]; then
tr ' ' '\n' <<< "$MODULES_CURRENT" > "${destination}"/etc/modules
else
tr ' ' '\n' <<< "$MODULES" > "${destination}"/etc/modules
tr ' ' '\n' <<< "$MODULES_LEGACY" > "${destination}"/etc/modules
fi
## Postinst