1*b2e0f490Snaddy.\" $OpenBSD: power.4,v 1.5 2011/06/24 19:47:48 naddy Exp $ 210f13806Smartin.\" 310f13806Smartin.\" 410f13806Smartin.\" Copyright (c) 2007 Martin Reindl 510f13806Smartin.\" 610f13806Smartin.\" Permission to use, copy, modify, and distribute this software for any 710f13806Smartin.\" purpose with or without fee is hereby granted, provided that the above 810f13806Smartin.\" copyright notice and this permission notice appear in all copies. 910f13806Smartin.\" 1010f13806Smartin.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 1110f13806Smartin.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1210f13806Smartin.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1310f13806Smartin.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1410f13806Smartin.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1510f13806Smartin.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1610f13806Smartin.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1710f13806Smartin.\" 18*b2e0f490Snaddy.Dd $Mdocdate: June 24 2011 $ 1910f13806Smartin.Dt POWER 4 landisk 2010f13806Smartin.Os 2110f13806Smartin.Sh NAME 2210f13806Smartin.Nm power 2310f13806Smartin.Nd power switch 2410f13806Smartin.Sh SYNOPSIS 2510f13806Smartin.Cd "power0 at obio?" 2610f13806Smartin.Sh DESCRIPTION 2710f13806SmartinLandisk models provide an interrupt when the power switch is flipped to the 2810f13806SmartinOff position. 2910f13806SmartinThe 3010f13806Smartin.Nm 3110f13806Smartindriver catches that interrupt. 3210f13806SmartinIf the 33*b2e0f490Snaddy.Va hw.allowpowerdown 3410f13806Smartin.Xr sysctl 8 3510f13806Smartinis set to 1, 3610f13806Smartin.Nm power 3710f13806Smartinwill signal 3810f13806Smartin.Xr init 8 3910f13806Smartinto do a clean shutdown. 4094ed6813Smartin.Sh SEE ALSO 4194ed6813Smartin.Xr intro 4 , 42*b2e0f490Snaddy.Xr obio 4 , 43*b2e0f490Snaddy.Xr init 8 , 44*b2e0f490Snaddy.Xr rc.shutdown 8 , 45*b2e0f490Snaddy.Xr sysctl 8 4610f13806Smartin.Sh HISTORY 4710f13806SmartinSupport for the 4810f13806Smartin.Nm 4910f13806Smartindriver first appeared in 5010f13806Smartin.Ox 4.1 . 51