diff options
author | glebius <glebius@FreeBSD.org> | 2011-11-15 12:59:07 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-11-15 12:59:07 +0000 |
commit | 973126c7ae29bb9333adf76de55953d133592687 (patch) | |
tree | 17a438bce3834c4e5c343fd2de60e278e30c381c /etc | |
parent | 6a35ddd54a6ed3c8b4fd3ff3e3a3d320aae0e698 (diff) | |
download | FreeBSD-src-973126c7ae29bb9333adf76de55953d133592687.zip FreeBSD-src-973126c7ae29bb9333adf76de55953d133592687.tar.gz |
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.
Diffstat (limited to 'etc')
-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 2cf1a60..1cd5d8a 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" \ |