Prepare the code to load the module. (still commented out)
authormarta <marta@8c455092-636d-4788-adf5-e71def0336e8>
Thu, 7 Jan 2010 15:34:35 +0000 (15:34 +0000)
committermarta <marta@8c455092-636d-4788-adf5-e71def0336e8>
Thu, 7 Jan 2010 15:34:35 +0000 (15:34 +0000)
planetlab/ipfwroot.spec

index 68373b9..b7b08e7 100644 (file)
@@ -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 <marta.carbone@iet.unipi.it>