Configurable timeout before automatic poweroff

This commit is contained in:
Julien Coloos
2014-05-20 22:39:32 +02:00
parent 3b3cf4b944
commit 9443a3bb6b
3 changed files with 56 additions and 4 deletions

View File

@@ -14,8 +14,16 @@ As explained upon installation, the following things need to be done:
The LUKS-encrypted devices to unlock are derived from `/etc/crypttab`.
The SSH listening port (22 by default) can be changed by setting the `sshcs_opt_listen` option in `/etc/dropbear/initrd.env` (file is sourced in initrd shell).
Some options can be set in `/etc/dropbear/initrd.env` (file is sourced in initrd shell):
* `sshcs_opt_listen`: SSH listening port
- default: 22
* `sshcs_opt_timeout_poweroff`: time (in seconds) to unlock devices before automatic powering off
- default (and minimum value): 2 minutes
- negative value to deactivate
For example:
sshcs_opt_listen=2222
sshcs_opt_timeout_poweroff=-1