]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.resume
Put apmd configuration and rc files in /etc.
[FreeBSD/FreeBSD.git] / etc / rc.resume
1 #!/bin/sh
2 #
3 #       $Id: rc.resume,v 1.1.1 1999/07/09 01:34:57 iwasaki Exp $
4 #
5 # sample run command file for APM Resume Event
6
7 if [ -f /var/run/rc.suspend.pid ]
8 then
9         kill -9 `cat /var/run/rc.suspend.pid`
10         rm -f /var/run/rc.suspend.pid
11         echo rc.suspend is killed
12 fi
13
14 # Turns on a power supply of a card in the slot inactivated.
15 # See also contrib/pccardq.c (only for PAO users).
16 #pccardq | awk -F '~' '$5 == "inactive" \
17 #       { printf("pccardc power %d 1", $1); }' | sh
18
19 logger -t apmd resumed at `date +'%Y%m%d %H:%M:%S'`
20 sync && sync && sync
21
22 exit 0
23