Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion dkms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ get_distro_os ()
if [ "${OS}" = "Linux" ] ; then
if [ -f /etc/redhat-release ] ; then
DISTRO_NAME='redhat'
elif [ -f /etc/nv_tegra_release ] ; then
DISTRO_NAME='l4t' # NVidia Jetson
elif [ -f /etc/debian_version ] ; then
DISTRO_NAME='debian'
elif [ -f /etc/SuSE-release ] ; then
Expand All @@ -105,7 +107,12 @@ main ()
GAWK="gawk"
CMD=""
DISTRO=$(get_distro_os)
if [ "${DISTRO}" = "debian" ] ; then
if [ "${DISTRO}" = "l4t" ] ; then
PACKET_MNG="${APT_GET}"
LINUX_HEADERS="nvidia-l4t-kernel-headers"
TOOLS="build-essential"
CMD="dpkg-query -l"
elif [ "${DISTRO}" = "debian" ] ; then
PACKET_MNG="${APT_GET}"
LINUX_HEADERS="linux-headers-`uname -r`"
TOOLS="build-essential"
Expand Down