home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / apm / scripts.d / hwclock < prev   
Encoding:
Text File  |  2006-07-20  |  235 b   |  17 lines

  1. #!/bin/sh
  2. # Preserve the system clock around suspend/resume.
  3.  
  4. INIT="/etc/init.d/hwclock.sh"
  5. [ -x "${INIT}" ] || exit 0
  6.  
  7. case "${1},${2}" in
  8. (suspend,*)
  9.     "${INIT}" stop
  10.     ;;
  11. (resume,suspend)
  12.     "${INIT}" start
  13.     ;;
  14. esac
  15.  
  16. exit 0
  17.