From 7c7839c1422ca66ccc89bf586442ee0962a8b449 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Thu, 21 Jun 2012 11:05:59 -0400 Subject: [PATCH] Load transforward module automatically --- transforward.conf | 1 + transforward.spec | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 transforward.conf diff --git a/transforward.conf b/transforward.conf new file mode 100644 index 0000000..c9acf57 --- /dev/null +++ b/transforward.conf @@ -0,0 +1 @@ +transforward diff --git a/transforward.spec b/transforward.spec index 2dcac49..1c83431 100644 --- a/transforward.spec +++ b/transforward.spec @@ -51,12 +51,15 @@ make -C %{kernelpath} V=1 M=$(pwd) modules %install install -D -m 755 transforward.ko $RPM_BUILD_ROOT/lib/modules/%{kernel_id}/net/transforward/transforward.ko +mkdir -p $RPM_BUILD_ROOT/etc/modules-load.d +install -m 644 transforward.conf $RPM_BUILD_ROOT/etc/modules-load.d/transforward.conf %clean rm -rf $RPM_BUILD_ROOT %files /lib/modules/%{kernel_id} +/etc/modules-load.d/procprotect.conf %post -- 2.43.0