carlosmscabral | f40ecd1 | 2013-02-01 18:15:58 -0200 | [diff] [blame] | 1 | obj-m = sch_htb.o |
| 2 | KVERSION = $(shell uname -r) |
| 3 | all: |
| 4 | make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules |
| 5 | install: |
| 6 | test -e /lib/modules/$(KVERSION)/kernel/net/sched/sch_htb.ko.bak || mv /lib/modules/$(KVERSION)/kernel/net/sched/sch_htb.ko /lib/modules/$(KVERSION)/kernel/net/sched/sch_htb.ko.bak |
| 7 | cp sch_htb.ko /lib/modules/$(KVERSION)/kernel/net/sched/sch_htb.ko |
| 8 | rmmod sch_htb |
| 9 | modprobe sch_htb |
| 10 | clean: |
| 11 | make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean |