Merge pull request #1659 from karabek/master

armbian-add-overlay: fixed for non-dev-branches
This commit is contained in:
Igor Pečovnik 2019-12-05 09:48:44 +13:00 committed by GitHub
commit ee6ce56ca7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,11 +40,6 @@ if [[ $LINUXFAMILY != sunxi && $LINUXFAMILY != sunxi64 ]]; then
exit -1 exit -1
fi fi
if [[ $BRANCH != next && $BRANCH != dev ]]; then
echo >&2 "Overlays are supported only on mainline kernel based images"
exit -1
fi
if [[ -d /lib/modules/$(uname -r)/build/scripts/dtc ]]; then if [[ -d /lib/modules/$(uname -r)/build/scripts/dtc ]]; then
if [[ ! -x /lib/modules/$(uname -r)/build/scripts/dtc/dtc ]]; then if [[ ! -x /lib/modules/$(uname -r)/build/scripts/dtc/dtc ]]; then
# Can't use distribution provided (i.e. Bionic) dtc yet # Can't use distribution provided (i.e. Bionic) dtc yet