[Lunar-commits] r15900 - in lunar/trunk: sbin var/lib/lunar/functions

Auke Kok sofar at lunar-linux.org
Wed Jul 27 11:04:09 UTC 2005


Author: sofar
Date: 2005-07-27 11:04:06 +0000 (Wed, 27 Jul 2005)
New Revision: 15900

Modified:
   lunar/trunk/sbin/lrm
   lunar/trunk/var/lib/lunar/functions/plugins.lunar
Log:
Adding PRE_REMOVE and POST_REMOVE plugin hooks in lrm.


Modified: lunar/trunk/sbin/lrm
===================================================================
--- lunar/trunk/sbin/lrm	2005-07-27 11:02:24 UTC (rev 15899)
+++ lunar/trunk/sbin/lrm	2005-07-27 11:04:06 UTC (rev 15900)
@@ -145,6 +145,7 @@
 
   # time-out 1: PRE_REMOVE
   if [ "$UPGRADE" != "on" ]; then
+    plugin_call BUILD_PRE_REMOVE $MODULE
     run_module_file $MODULE PRE_REMOVE
   fi
 
@@ -183,6 +184,7 @@
 
   # time-out 2: POST_REMOVE
   if [ "$UPGRADE" != "on" ] ; then
+    plugin_call BUILD_POST_REMOVE $MODULE
     run_module_file $MODULE POST_REMOVE
   fi
   if [ "$KEEPCONFIG" == "on" -o "$UPGRADE" == "on" ] ; then

Modified: lunar/trunk/var/lib/lunar/functions/plugins.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/plugins.lunar	2005-07-27 11:02:24 UTC (rev 15899)
+++ lunar/trunk/var/lib/lunar/functions/plugins.lunar	2005-07-27 11:04:06 UTC (rev 15900)
@@ -35,6 +35,8 @@
 	# 10 - BUILD_INSTALL             ,,     ,,     ,,    INSTALL
 	# 11 - BUILD_POST_BUILD          ,,     ,,     ,,    POST_BUILD
 	# 12 - BUILD_POST_INSTALL        ,,     ,,     ,,    POST_INSTALL
+	# 13 - BUILD_PRE_REMOVE          ,,     ,,     ,,    PRE_REMOVE
+	# 14 - BUILD_POST_REMOVE         ,,     ,,     ,,    POST_REMOVE
 	LUNAR_PLUGINS=(${LUNAR_PLUGINS[@]} "$1:$2")
 	((LUNAR_PLUGIN_COUNT++))
 	debug_msg "Registered plugin #$LUNAR_PLUGIN_COUNT, $1 -> $2()"



More information about the Lunar-commits mailing list