From: marta Date: Thu, 7 Jan 2010 15:34:35 +0000 (+0000) Subject: Prepare the code to load the module. (still commented out) X-Git-Tag: ipfw-0.9-8~2 X-Git-Url: http://git.onelab.eu/?p=ipfw.git;a=commitdiff_plain;h=bce1c92b8415248c5aecb9f8a3e3a9e94ba4fb69 Prepare the code to load the module. (still commented out) --- 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