File ivman-config.patch of Package ivman

--- src/IvmConfig/IvmConfigBase.xml
+++ src/IvmConfig/IvmConfigBase.xml
@@ -7,7 +7,7 @@
 
     <!-- Whether or not to give debugging output.  Warning, this is very
          verbose! -->
-    <ivm:Option name="debug" value="true" />
+    <ivm:Option name="debug" value="false" />
 
     <!-- whether or not system-wide ivman should sleep a little while before
          mounting volumes.  Default: true. -->
@@ -21,22 +21,18 @@
 
     <!-- user for Ivman to run as.  You can then setup sudo rules for this
          user. -->
-    <ivm:Option name="user" value="ivman" /> 
+    <ivm:Option name="user" value="root" /> 
 
     <!-- group for Ivman to run as. Should have permissions to run 'pmount'. -->
-    <ivm:Option name="group" value="plugdev" />
+    <ivm:Option name="group" value="root" />
 
     <!-- mount command.  default is autodetected.  Must be specified with
          umountcommand. -->
-    <!--
-    <ivm:Option name="mountcommand" value="mount '$hal.block.device$'" />
-    -->
+    <ivm:Option name="mountcommand" value="halmount '$hal.block.device$'" />
 
     <!-- umount command.  default is autodetected.  Must be specified with
          mountcommand. -->
-    <!--
-    <ivm:Option name="umountcommand" value="umount '$hal.block.device$'" />
-    -->
+    <ivm:Option name="umountcommand" value="halmount -u '$hal.block.device$'" />
 
     <!-- If using pmount, and running as a system-wide instance of Ivman,
          mount devices with this umask.  Default: 007                    -->
--- src/IvmConfig/IvmConfigConditions.xml
+++ src/IvmConfig/IvmConfigConditions.xml
@@ -43,4 +43,10 @@
     </ivm:Match>
     -->
 
+    <!-- eject the drive if the eject button has been pressed
+    -->
+    <ivm:Match name="hal.storage.requires_eject" value="true">
+        <ivm:Condition name="EjectPressed" exec="/usr/bin/halmount.py -e '$hal.block.device$'" />
+    </ivm:Match>
+
 </ivm:ConditionsConfig>
--- src/IvmConfig/IvmConfigProperties.xml
+++ src/IvmConfig/IvmConfigProperties.xml
@@ -56,7 +56,7 @@
     <!--
     <ivm:Match name="*">
         <ivm:Property name="hal.volume.is_mounted">
-            <ivm:Action value="true" exec="sudo wall $hal.block.device$ mounted at $hal.volume.mount_point$" />
+            <ivm:Action value="true" exec="wall $hal.block.device$ mounted at $hal.volume.mount_point$" />
         </ivm:Property>
     </ivm:Match>
     -->
openSUSE Build Service is sponsored by