[Rear-users] SF.net SVN: rear:[535] trunk/usr/share/rear/lib/udev-workflow.sh

dag- at users.sourceforge.net dag- at users.sourceforge.net
Thu Jun 2 01:37:31 CEST 2011


Revision: 535
          http://rear.svn.sourceforge.net/rear/?rev=535&view=rev
Author:   dag-
Date:     2011-06-01 23:37:30 +0000 (Wed, 01 Jun 2011)

Log Message:
-----------
Make udev workflow more like what rear does

Modified Paths:
--------------
    trunk/usr/share/rear/lib/udev-workflow.sh

Modified: trunk/usr/share/rear/lib/udev-workflow.sh
===================================================================
--- trunk/usr/share/rear/lib/udev-workflow.sh	2011-06-01 23:37:00 UTC (rev 534)
+++ trunk/usr/share/rear/lib/udev-workflow.sh	2011-06-01 23:37:30 UTC (rev 535)
@@ -46,11 +46,11 @@
     fi
 
     # If udev workflow does not exist, bail out loudly
-    IsInArray "$UDEV_WORKFLOW" "${WORKFLOWS[@]}"
+    ! type -t WORKFLOW_$WORKFLOW >/dev/null
     StopIfError "Udev workflow '$UDEV_WORKFLOW' does not exist"
 
     # Run udev workflow
-    WORKFLOW_$UDEV_WORKFLOW
+    WORKFLOW_$UDEV_WORKFLOW "${ARGS[@]}"
 
     # Beep distinctively
     if [[ "$UDEV_BEEP" =~ ^[yY1] ]]; then


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rear-users mailing list