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-system-wol-supported < prev   
Text File  |  2010-05-09  |  484b  |  21 lines

  1. #!/bin/bash
  2. #
  3. # Copyright (C) 2007 Holger Macht <holger@homac.de>
  4. #
  5. # Author: Holger Macht <holger@homac.de>
  6. #
  7. # This file is released under the GPLv2.
  8. #
  9.  
  10. . hal-functions
  11.  
  12. if [ -z "$UDI" -o -z "$HAL_PROP_NET_INTERFACE" ]; then
  13.     echo "org.freedesktop.Hal.Device.WakeOnLAN.UnknownError" >&2
  14.     echo "Missing or empty environment variable(s)." >&2
  15.     echo "This script should be started by hald." >&2
  16.     exit 1
  17. fi
  18.  
  19. hal_check_priv org.freedesktop.hal.wol.supported
  20. hal_exec_backend
  21.