/
LUKSUS
executable file
·81 lines (66 loc) · 1.74 KB
/
LUKSUS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env bash
# LUKSUS
# Easy drive encryption script using LUKS
# by Thomas Frivold
#
# github code repository (project page):
# https://github.com/thomasfrivold/luksus
#
# please see README file for complete information
# regarding LUKSUS
#
# LUKSUS is released under GNU GPLv2 License
# see URL below
# http://www.gnu.org/licenses/gpl-2.0.html
###############################
######### VARIABLES ###########
###############################
if [ -r LUKSUS.variables ]; then
source LUKSUS.variables
else
exit 1
fi
###############################
##### FUNCTIONS ######
###############################
if [ -r LUKSUS.functions ]; then
source LUKSUS.functions
else
exit 1
fi
###############################
###### INITIAL WELCOME ########
###############################
if [ -r LUKSUS.welcome ]; then
source LUKSUS.welcome
else
exit 1
fi
###############################
##### CONDITIONAL CHECKS ######
###############################
if [ -r LUKSUS.checks ]; then
source LUKSUS.checks
else
exit 1
fi
#########################################################
#########################################################
#########################################################
#########################################################
################ BEGINNING PROGRAM ######################
#########################################################
#########################################################
#########################################################
#########################################################
# Calling functions
DISPLAYLOGO
ASKUSERVERIFY
LOOPBACKMETHOD
DONTSHREDIFLOOPBACK
THESECRETSAUCE
CREATEANDMOUNTFS
DISPLAYLOGO
DISPLAYSUMMARY
DISPLAYSUMMARY 1>$keydir/$name.information 2>$keydir/$name.information
exit 0