home *** CD-ROM | disk | FTP | other *** search
/ tusportal.tus.k12.pa.us / tusportal.tus.k12.pa.us.tar / tusportal.tus.k12.pa.us / Wyse / latest-image.raw / 0.img / usr / lib / hal / scripts / hal-luks-remove < prev    next >
Text File  |  2010-05-09  |  839b  |  24 lines

  1. #!/bin/bash
  2.  
  3. # Copyright (C) 2005 W. Michael Petullo <mike@flyn.org>
  4. # Copyright (C) 2006 David Zeuthen <davidz@redhat.com>
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License version 2.
  7.  
  8. if [ -z "$HAL_PROP_BLOCK_DEVICE" ] || [ -z "$HAL_PROP_INFO_UDI" ] || [ -z "$HAL_PROP_VOLUME_UUID" ] ; then
  9.         echo "org.freedesktop.Hal.Device.UnknownError" >&2
  10.         echo "Missing or empty environment variable(s)." >&2
  11.         echo "This script should be started by hald." >&2
  12.         exit 1
  13. fi
  14.  
  15.  
  16. if [ -n "$HALD_UNAME_S" -a -x ./$HALD_UNAME_S/hal-luks-remove-$HALD_UNAME_S ]; then
  17.     exec ./$HALD_UNAME_S/hal-luks-remove-$HALD_UNAME_S $@
  18. else
  19.     echo "org.freedesktop.Hal.Device.UnknownError" >&2
  20.     echo "No back-end for your operating system" >&2
  21.     exit 1
  22. fi
  23.