Skip to content

Commit

Permalink
v6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Fourdee committed Jan 14, 2018
1 parent bb3fc17 commit 95e6304
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,9 @@ _EOF_

fi

fi

# - G_HW_MODEL specific required packages
# RPi
if (( $G_HW_MODEL < 10 )); then
elif (( $G_HW_MODEL < 10 )); then

apt-mark unhold libraspberrypi-bin libraspberrypi0 raspberrypi-bootloader raspberrypi-kernel raspberrypi-sys-mods raspi-copies-and-fills
rm -R /lib/modules/*
Expand Down Expand Up @@ -615,10 +613,20 @@ _EOF_

G_AGI device-tree-compiler #Kern

# Asus TB
# elif (( $G_HW_MODEL == 100 )); then
# - Auto detect kernel package
else

AUTO_DETECT_KERN_PKG=$(dpkg --get-selections | grep '^linux-image' | awk '{print $1}')
if [ -n "$AUTO_DETECT_KERN_PKG" ]; then

# G_AGI linaro-overlay-minimal
G_AGI $AUTO_DETECT_KERN_PKG

else

G_DIETPI-NOTIFY 1 'Error: Unable to find kernel packages for installation. Aborting...'
exit 1

fi

fi

Expand Down

0 comments on commit 95e6304

Please sign in to comment.