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.pull/10/head
parent
3bbef8679d
commit
7c2583c938
3
Makefile
3
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
|
||||
sudo insmod intrepid.ko
|
||||
|
|
|
|||
Loading…
Reference in New Issue