hal/tools hal-system-storage-mount,1.3,1.4
David Zeuthen
david at freedesktop.org
Tue Dec 13 16:46:37 PST 2005
Update of /cvs/hal/hal/tools
In directory gabe:/tmp/cvs-serv3769/tools
Modified Files:
hal-system-storage-mount
Log Message:
2005-12-13 David Zeuthen <david at fubar.dk>
Add a boolean parameter to Mount for dry-run.
* tools/hal-system-storage-mount :
* fdi/policy/10osvendor/20-storage-methods.fdi:
Index: hal-system-storage-mount
===================================================================
RCS file: /cvs/hal/hal/tools/hal-system-storage-mount,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- hal-system-storage-mount 13 Dec 2005 23:51:28 -0000 1.3
+++ hal-system-storage-mount 14 Dec 2005 00:46:34 -0000 1.4
@@ -31,9 +31,11 @@
# "MyDisk\n"
# "fuse\n"
# "ro\tsync\n"
+# "[true|false]\n"
read GIVEN_MOUNTPOINT
read GIVEN_MOUNTTYPE
read GIVEN_MOUNTOPTIONS
+read GIVEN_DRYRUN
# if no mountpoint, get mountpoint from label
if [ "$GIVEN_MOUNTPOINT" == "" ]; then
@@ -128,6 +130,12 @@
;;
esac
+# If it's a dryrun we're done at this point
+if [ "$GIVEN_DRYRUN" == "true" ]; then
+ echo "dryrun done"
+ exit 0
+fi
+
# append number to mountpoint if it already exists
if [ -e "$MOUNT_ROOT/$MOUNTPOINT" ]; then
NUM=1;
More information about the hal-commit
mailing list