2006-11-22 16:21:21 +01:00
|
|
|
Event scripts for CryptoBox events
|
2006-11-09 12:43:26 +01:00
|
|
|
|
|
|
|
If you want to execute specific actions according to changes of the cryptobox,
|
|
|
|
then you can just add your own scripts to this directory.
|
|
|
|
For every supported event of the CryptoBox, all scripts are called with root user
|
|
|
|
permissions.
|
|
|
|
|
2006-11-22 16:21:21 +01:00
|
|
|
The common synopsis for all event scripts is:
|
2006-11-09 12:43:26 +01:00
|
|
|
SCRIPTNAME EVENT [[EVENT_INFOS]...]
|
|
|
|
|
|
|
|
Supported events:
|
|
|
|
premount|postmount|preumount|postumount:
|
|
|
|
called before and after (u)mounting of a volume
|
|
|
|
arguments (in this order):
|
|
|
|
- device: name of the underlying device
|
|
|
|
- vol_name: name of the (u)mounted volume
|
|
|
|
- vol_type: type of the volume (plain|luks)
|
|
|
|
- mount_dir: mountpoint of the volume
|
|
|
|
|
|
|
|
|
2006-11-22 16:21:21 +01:00
|
|
|
Every event script has to fulfill the following conditions:
|
2006-11-09 12:43:26 +01:00
|
|
|
- be executable (for the cryptobox user and for root)
|
|
|
|
- be writeable for root only
|
|
|
|
- its parent directories must be writeable for root only
|
2006-12-07 13:20:43 +01:00
|
|
|
- the directory of the script must contain a file called '_event_scripts_' (to prevent abuse)
|
2006-11-09 12:43:26 +01:00
|
|
|
|