From cd6bf4920d20bb916ee3ff34579a5e1d9d5d3492 Mon Sep 17 00:00:00 2001 From: KamicDemon-Intrepid <52170529+KamicDemon-Intrepid@users.noreply.github.com> Date: Mon, 24 Jun 2019 11:53:32 -0400 Subject: [PATCH] Edit /etc/modules in "install" function The previous version of the "install" function in the MakeFile didn't update the /etc/modules file to include intrepid as a kernel to load at boot time. This change makes the necessary change, allowing the kernel to be loaded automatically. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9a2c40..2843449 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ all: install: mkdir -p /lib/modules/$(KVERSION)/extra cp intrepid.ko /lib/modules/$(KVERSION)/extra/ + grep -q -F 'intrepid' /etc/modules || echo 'intrepid' | tee -a /etc/modules depmod -a clean: make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean @@ -13,4 +14,4 @@ reload: all sudo modprobe can sudo modprobe can_raw sudo modprobe can_dev - sudo insmod intrepid.ko \ No newline at end of file + sudo insmod intrepid.ko