From bce1c92b8415248c5aecb9f8a3e3a9e94ba4fb69 Mon Sep 17 00:00:00 2001 From: marta Date: Thu, 7 Jan 2010 15:34:35 +0000 Subject: [PATCH] Prepare the code to load the module. (still commented out) --- planetlab/ipfwroot.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/planetlab/ipfwroot.spec b/planetlab/ipfwroot.spec index 68373b9..b7b08e7 100644 --- a/planetlab/ipfwroot.spec +++ b/planetlab/ipfwroot.spec @@ -3,7 +3,6 @@ # # TODO: # restart crond -# modprobe ipfw_mod.ko (depmod ?) # %define url $URL$ @@ -62,6 +61,14 @@ install -D -m 755 ipfw/ipfw $RPM_BUILD_ROOT/sbin/ipfw install -D -m 755 planetlab/ipfw-cleanup $RPM_BUILD_ROOT/usr/bin/ipfw-cleanup install -D -m 644 planetlab/ipfw.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/ipfw.cron +%post +# load the module +##modprobe ipfw_mod +##depmod -a +# clean the old database and initialize the firewall +##echo "super dbcleanup" | /vsys/ipfw-be 0 +##echo "super init" | /vsys/ipfw-be 0 + %clean rm -rf $RPM_BUILD_ROOT @@ -77,9 +84,6 @@ rm -rf $RPM_BUILD_ROOT %postun # unload the module if present LOADED=`cat /proc/modules | grep ^ipfw_mod`; if [ -n "$LOADED" ] ; then rmmod ipfw_mod; fi -# clean the old database and initialize the firewall -echo "super dbcleanup" | /vsys/ipfw-be 0 -echo "super init" | /vsys/ipfw-be 0 %changelog * Wed Jan 06 2010 Marta Carbone -- 2.43.0