rc.resume revision 50472
148734Siwasaki#!/bin/sh 248734Siwasaki# 350472Speter# $FreeBSD: head/etc/rc.resume 50472 1999-08-27 23:37:10Z peter $ 448734Siwasaki# 548734Siwasaki# sample run command file for APM Resume Event 648734Siwasaki 748734Siwasakiif [ -f /var/run/rc.suspend.pid ] 848734Siwasakithen 948734Siwasaki kill -9 `cat /var/run/rc.suspend.pid` 1048734Siwasaki rm -f /var/run/rc.suspend.pid 1148734Siwasaki echo rc.suspend is killed 1248734Siwasakifi 1348734Siwasaki 1448734Siwasaki# Turns on a power supply of a card in the slot inactivated. 1548734Siwasaki# See also contrib/pccardq.c (only for PAO users). 1648734Siwasaki#pccardq | awk -F '~' '$5 == "inactive" \ 1748734Siwasaki# { printf("pccardc power %d 1", $1); }' | sh 1848734Siwasaki 1948734Siwasakilogger -t apmd resumed at `date +'%Y%m%d %H:%M:%S'` 2048734Siwasakisync && sync && sync 2148734Siwasaki 2248734Siwasakiexit 0 2348734Siwasaki 24