#!/bin/bash # -*- Mode: shell-script -*- # Copyright (C) 2003 by MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com> # Redistribution of this file is permitted under the terms of the GNU # Public License (GPL) # # resume: 70 # . /etc/sysconfig/suspend ARG=$1 if [[ $CLOCK_SYNC != "yes" ]];then exit; fi [ -e /etc/sysconfig/apmd ] && . /etc/sysconfig/apmd [ -e /etc/sysconfig/clock ] && . /etc/sysconfig/clock function suspend { true } function resume { CLOCK="" [ "$UTC" = "yes" -o "$UTC" = "true" -o "$UTC" = 1 ] && CLOCK="-u" hwclock $CLOCK --hctosys 2>/dev/null >/dev/null } case $ARG in suspend) suspend ;; resume) resume ;; esac