mirror of
https://github.com/intrepidcs/intrepid-socketcan-kernel-module.git
synced 2026-08-05 01:18:37 +02:00
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.
This commit is contained in:
committed by
Paul Hollinsky
parent
3bbef8679d
commit
7c2583c938
@@ -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
|
||||
sudo insmod intrepid.ko
|
||||
|
||||
Reference in New Issue
Block a user