diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-11-15 12:59:07 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-11-15 12:59:07 +0000 |
commit | 4ccbfb3f84788403ff5de448ed7f61c27e754313 (patch) | |
tree | 17a438bce3834c4e5c343fd2de60e278e30c381c /etc/rc.resume | |
parent | 3c93d4433fb72d68ccb577e8489754344f4ed685 (diff) | |
download | src-4ccbfb3f84788403ff5de448ed7f61c27e754313.tar.gz src-4ccbfb3f84788403ff5de448ed7f61c27e754313.zip |
On some laptops it is important to re-open /dev/psm after resume. moused(8)
was capable to do this upon SIGHUP for more than a decade. Automate this
via rc.resume in default installation.
Notes
Notes:
svn path=/head/; revision=227528
Diffstat (limited to 'etc/rc.resume')
-rwxr-xr-x | etc/rc.resume | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.resume b/etc/rc.resume index 2cf1a603e53f..1cd5d8a8ed63 100755 --- a/etc/rc.resume +++ b/etc/rc.resume @@ -49,6 +49,10 @@ if [ -r /var/run/rc.suspend.tch ]; then /bin/rm -f /var/run/rc.suspend.tch fi +if [ -r /var/run/moused.pid ]; then + kill -HUP `head -1 /var/run/moused.pid` +fi + # Turns on a power supply of a card in the slot inactivated. # See also contrib/pccardq.c (only for PAO users). # pccardq | awk -F '~' '$5 == "inactive" \ |