First commit
This commit is contained in:
commit
aee895f1dd
2 changed files with 110 additions and 0 deletions
36
README.md
Normal file
36
README.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
Mount_FreeBSD_encimg
|
||||
--------------------
|
||||
|
||||
A small script utility to mount encrypted image disk in FreeBSD / FreeNAS then
|
||||
execute desired services
|
||||
|
||||
this script is inspired by one you can find [here][L_nlsr]
|
||||
# Customize
|
||||
|
||||
First you'll need to customize a little for your need, there 3 variables to
|
||||
modify :
|
||||
|
||||
* IMAGE_DISK : full path to your disk image
|
||||
* MOUNT_PATH : full path to your mount point
|
||||
* SERVICES : services you want to start after mounting image.
|
||||
|
||||
# Example
|
||||
|
||||
I want to mount my image ``/data/backup_drive.img`` to ``/var/spool/burp/``
|
||||
then start burp service. Here is all three variables :
|
||||
|
||||
~~~sh
|
||||
DISK_IMAGE="/data/backup_drive.img"
|
||||
MOUNT_POINT="/var/spool/burp/"
|
||||
SERVICES="burp"
|
||||
~~~
|
||||
|
||||
Then, i just need to launch the script then prey there is no bug ;-)
|
||||
|
||||
~~~
|
||||
#mount.sh mount
|
||||
~~~
|
||||
|
||||
done!
|
||||
|
||||
[L_nlsr]:http://www.nlrs.fr/2011/09/17/encrypted-share-geli/
|
Reference in a new issue