1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.resume 50472 1999-08-27 23:37:10Z peter $
| 3# $FreeBSD: head/etc/rc.resume 51231 1999-09-13 15:44:20Z sheldonh $
|
4# 5# sample run command file for APM Resume Event 6
| 4# 5# sample run command file for APM Resume Event 6
|
7if [ -f /var/run/rc.suspend.pid ] 8then
| 7if [ -r /var/run/rc.suspend.pid ]; then
|
9 kill -9 `cat /var/run/rc.suspend.pid` 10 rm -f /var/run/rc.suspend.pid 11 echo rc.suspend is killed 12fi 13 14# Turns on a power supply of a card in the slot inactivated. 15# See also contrib/pccardq.c (only for PAO users).
| 8 kill -9 `cat /var/run/rc.suspend.pid` 9 rm -f /var/run/rc.suspend.pid 10 echo rc.suspend is killed 11fi 12 13# Turns on a power supply of a card in the slot inactivated. 14# See also contrib/pccardq.c (only for PAO users).
|
16#pccardq | awk -F '~' '$5 == "inactive" \ 17# { printf("pccardc power %d 1", $1); }' | sh
| 15# pccardq | awk -F '~' '$5 == "inactive" \ 16# { printf("pccardc power %d 1", $1); }' | sh
|
18 19logger -t apmd resumed at `date +'%Y%m%d %H:%M:%S'` 20sync && sync && sync 21 22exit 0
| 17 18logger -t apmd resumed at `date +'%Y%m%d %H:%M:%S'` 19sync && sync && sync 20 21exit 0
|
23
| |
| |