[PATCH 02/10] hal: Clean up scripts in tools
Victor Lowther
victor.lowther at gmail.com
Tue Mar 25 18:48:36 PDT 2008
hal-luks-remove was needlessly duplicating the hal_exec_backend code.
---
tools/hal-luks-remove | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/tools/hal-luks-remove b/tools/hal-luks-remove
index 31f1bfd..62324a6 100755
--- a/tools/hal-luks-remove
+++ b/tools/hal-luks-remove
@@ -13,11 +13,4 @@ if [ -z "$HAL_PROP_BLOCK_DEVICE" ] || [ -z "$HAL_PROP_INFO_UDI" ] || [ -z "$HAL_
exit 1
fi
-
-if [ -n "$HALD_UNAME_S" -a -x ./$HALD_UNAME_S/hal-luks-remove-$HALD_UNAME_S ]; then
- exec ./$HALD_UNAME_S/hal-luks-remove-$HALD_UNAME_S $@
-else
- echo "org.freedesktop.Hal.Device.UnknownError" >&2
- echo "No back-end for your operating system" >&2
- exit 1
-fi
+hal_exec_backend
--
1.5.4.3
More information about the hal
mailing list