penguins-eggs 9.3.22 → 9.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.oclif.manifest.json +1 -1
- package/README.md +128 -65
- package/dist/commands/adapt.js +4 -2
- package/dist/commands/analyze.js +2 -2
- package/dist/commands/calamares.js +7 -2
- package/dist/commands/config.js +6 -3
- package/dist/commands/cuckoo.js +4 -6
- package/dist/commands/dad.js +6 -1
- package/dist/commands/export/deb.js +6 -1
- package/dist/commands/export/iso.js +6 -1
- package/dist/commands/install.js +6 -2
- package/dist/commands/kill.js +4 -2
- package/dist/commands/mom.js +5 -2
- package/dist/commands/produce.js +7 -8
- package/dist/commands/status.js +4 -1
- package/dist/commands/syncfrom.js +5 -3
- package/dist/commands/syncto.js +5 -3
- package/dist/commands/tools/clean.js +4 -2
- package/dist/commands/tools/ppa.js +5 -1
- package/dist/commands/tools/skel.js +5 -6
- package/dist/commands/tools/stat.js +6 -1
- package/dist/commands/tools/yolk.js +4 -2
- package/dist/commands/update.js +4 -2
- package/dist/commands/wardrobe/get.js +6 -2
- package/dist/commands/wardrobe/list.js +6 -2
- package/dist/commands/wardrobe/show.js +7 -2
- package/dist/commands/wardrobe/wear.js +7 -2
- package/dist/krill/krill-sequence.js +5 -4
- package/dist/krill/modules/locale-cfg.js +2 -1
- package/dist/krill/modules/locale.js +1 -1
- package/dist/krill/modules/m-keyboard.js +1 -1
- package/dist/lib/dependencies.js +7 -6
- package/package.json +3 -3
- package/scripts/README.md +120 -0
- package/scripts/includes/easybashgui +1695 -0
- package/scripts/includes/easybashgui.lib +8039 -0
- package/scripts/includes/easybashlib +550 -0
- package/scripts/mom.sh +246 -0
- package/scripts/mom-cli.sh +0 -403
package/scripts/mom.sh
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
function main() {
|
|
3
|
+
config
|
|
4
|
+
|
|
5
|
+
# root
|
|
6
|
+
root=$(cat /usr/lib/penguins-eggs/.oclif.manifest.json | jq .)
|
|
7
|
+
result=$(echo ${root} | jq ".commands[].id")
|
|
8
|
+
result+=("documentation" "quit")
|
|
9
|
+
|
|
10
|
+
while true; do
|
|
11
|
+
clear
|
|
12
|
+
# NOTE [@]
|
|
13
|
+
menu ${result[@]}
|
|
14
|
+
answer=$(0< "${dir_tmp}/${file_tmp}" )
|
|
15
|
+
case "$answer" in
|
|
16
|
+
quit)
|
|
17
|
+
exit ;;
|
|
18
|
+
documentation)
|
|
19
|
+
documentation ;;
|
|
20
|
+
*)
|
|
21
|
+
eggs $answer --help
|
|
22
|
+
press_a_key_to_continue
|
|
23
|
+
esac
|
|
24
|
+
done
|
|
25
|
+
|
|
26
|
+
exit 0
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
################################
|
|
31
|
+
function documentation() {
|
|
32
|
+
while true; do
|
|
33
|
+
|
|
34
|
+
menu "book" "manual" "man" "repository" "sourceforge" "quit"
|
|
35
|
+
choose=$(0< "${dir_tmp}/${file_tmp}" )
|
|
36
|
+
|
|
37
|
+
case "$choose" in
|
|
38
|
+
book)
|
|
39
|
+
documentation_book ;;
|
|
40
|
+
manual)
|
|
41
|
+
documentation_html ;;
|
|
42
|
+
man)
|
|
43
|
+
documentation_man ;;
|
|
44
|
+
repository)
|
|
45
|
+
documentation_repository ;;
|
|
46
|
+
sourceforge)
|
|
47
|
+
documentation_sourceforge ;;
|
|
48
|
+
quit)
|
|
49
|
+
break ;;
|
|
50
|
+
esac
|
|
51
|
+
done
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
################################
|
|
55
|
+
function documentation_book() {
|
|
56
|
+
xdg-open "https://penguins-eggs.net/book/italiano"
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
################################
|
|
60
|
+
function documentation_site() {
|
|
61
|
+
xdg-open "https://penguins-eggs.net"
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
################################
|
|
65
|
+
function documentation_html() {
|
|
66
|
+
xdg-open "file:///usr/lib/penguins-eggs/manpages/doc/man/eggs.html"
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
################################
|
|
70
|
+
function documentation_man() {
|
|
71
|
+
man eggs
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
################################
|
|
75
|
+
function documentation_repository() {
|
|
76
|
+
xdg-open "https://github.com/pieroproietti/penguins-eggs"
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
################################
|
|
80
|
+
function documentation_sourceforge() {
|
|
81
|
+
xdg-open "https://sourceforge.com/project/penguins-eggs"
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
################################
|
|
87
|
+
function press_a_key_to_continue {
|
|
88
|
+
read -rp "Press enter to continue"
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
################################
|
|
92
|
+
function query() {
|
|
93
|
+
local retval=$(echo ${root} | jq "${filter}")
|
|
94
|
+
echo ${retval}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
################################
|
|
98
|
+
function config() {
|
|
99
|
+
# configurations
|
|
100
|
+
set -e
|
|
101
|
+
|
|
102
|
+
# Disable unicode.
|
|
103
|
+
LC_ALL=C
|
|
104
|
+
LANG=C
|
|
105
|
+
|
|
106
|
+
# easy-bash-gui
|
|
107
|
+
eb_incl easybashgui
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
##################################################################################
|
|
111
|
+
##################################################################################
|
|
112
|
+
##################################################################################
|
|
113
|
+
##################################################################################
|
|
114
|
+
#
|
|
115
|
+
# The master copy of the "easybashincl code snippet" is
|
|
116
|
+
# being maintained in easybashgui (as it loads easybashlib).
|
|
117
|
+
#
|
|
118
|
+
##################################################################################
|
|
119
|
+
##################################################################################
|
|
120
|
+
################## BEGIN easybashincl code snippet ###############################
|
|
121
|
+
##################################################################################
|
|
122
|
+
#
|
|
123
|
+
|
|
124
|
+
# avoid repeated definitions
|
|
125
|
+
function eb_incl_loading_required()
|
|
126
|
+
{
|
|
127
|
+
local this_eb_incl_version="4"
|
|
128
|
+
|
|
129
|
+
if [ "${eb_incl_snippet__version:-0}" = "0" ] \
|
|
130
|
+
|| [ "${this_eb_incl_version}" -gt "${eb_incl_snippet__version}" ]
|
|
131
|
+
then
|
|
132
|
+
declare eb_incl_snippet__version="${this_eb_incl_version}"
|
|
133
|
+
return 0
|
|
134
|
+
else
|
|
135
|
+
return 1
|
|
136
|
+
fi
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
declare eb_current_process_path="$(echo "${0}" | sed s\#'^-'#''# )"
|
|
141
|
+
if eb_incl_loading_required
|
|
142
|
+
then
|
|
143
|
+
|
|
144
|
+
declare eb_runtime_invoke_path="${eb_current_process_path}"
|
|
145
|
+
declare eb_runtime_invoke_name="$(basename "${eb_current_process_path}" )"
|
|
146
|
+
declare eb_runtime_abs_invoke_dir
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
function eb_absolute_path()
|
|
150
|
+
# Returns the absolute path of the given path (or of the running script if no path is specified).
|
|
151
|
+
{
|
|
152
|
+
if [ "$#" = "0" ]
|
|
153
|
+
then
|
|
154
|
+
local given_path="$0"
|
|
155
|
+
else
|
|
156
|
+
local given_path="$1"
|
|
157
|
+
fi
|
|
158
|
+
|
|
159
|
+
# if path is already absolute
|
|
160
|
+
if [ "x${given_path:0:1}" = 'x/' ]
|
|
161
|
+
then
|
|
162
|
+
echo $(dirname "$given_path")
|
|
163
|
+
else
|
|
164
|
+
echo $(dirname "$(pwd)/$given_path")
|
|
165
|
+
fi
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
eb_runtime_abs_invoke_dir=$(eb_absolute_path)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
# eb_incl() lets you include files into your main script (modularization)
|
|
173
|
+
# it searches for file in system, same dir, and $SHELL_LIBRARY_PATH
|
|
174
|
+
#
|
|
175
|
+
function eb_incl() {
|
|
176
|
+
local module=$1
|
|
177
|
+
|
|
178
|
+
if [ "${module:-unspecified}" = "unspecified" ]
|
|
179
|
+
then
|
|
180
|
+
echo "$eb_runtime_invoke_name: eb_incl: No module specified." 1>&2
|
|
181
|
+
return 1
|
|
182
|
+
fi
|
|
183
|
+
|
|
184
|
+
if [ "x${eb_runtime_abs_invoke_dir:-notset}" == "xnotset" ]
|
|
185
|
+
then
|
|
186
|
+
echo "$eb_runtime_invoke_name: eb_incl: Error, eb_runtime_abs_invoke_dir not set."
|
|
187
|
+
exit 1
|
|
188
|
+
fi
|
|
189
|
+
|
|
190
|
+
if [ "x$eb_runtime_abs_invoke_dir" == "x" ]
|
|
191
|
+
then
|
|
192
|
+
echo "$eb_runtime_invoke_name: eb_incl: Error, eb_runtime_abs_invoke_dir is empty."
|
|
193
|
+
exit 1
|
|
194
|
+
fi
|
|
195
|
+
|
|
196
|
+
# if installed in system's PATH
|
|
197
|
+
if type "$module" &>/dev/null
|
|
198
|
+
then
|
|
199
|
+
source "$module"
|
|
200
|
+
return 0
|
|
201
|
+
|
|
202
|
+
# if in same dir
|
|
203
|
+
elif [ -e "$eb_runtime_abs_invoke_dir/$module" ]
|
|
204
|
+
then
|
|
205
|
+
source "$eb_runtime_abs_invoke_dir/$module"
|
|
206
|
+
return 0
|
|
207
|
+
|
|
208
|
+
# if in includes/ subdir
|
|
209
|
+
elif [ -e "$eb_runtime_abs_invoke_dir/includes" ] \
|
|
210
|
+
&& [ -e "$eb_runtime_abs_invoke_dir/includes/$module" ]
|
|
211
|
+
then
|
|
212
|
+
source "$eb_runtime_abs_invoke_dir/includes/$module"
|
|
213
|
+
return 0
|
|
214
|
+
|
|
215
|
+
# if in "libexec_dir"
|
|
216
|
+
elif [ -e "$libexec_dir/$module" ]
|
|
217
|
+
then
|
|
218
|
+
source "$libexec_dir/$module"
|
|
219
|
+
return 0
|
|
220
|
+
|
|
221
|
+
# if lib path is defined
|
|
222
|
+
elif [ "${SHELL_LIBRARY_PATH:-unset}" != "unset" ]
|
|
223
|
+
then
|
|
224
|
+
local saved_IFS="$IFS"
|
|
225
|
+
IFS=':'
|
|
226
|
+
for path in $SHELL_LIBRARY_PATH
|
|
227
|
+
do
|
|
228
|
+
if [ -e "$path/$module" ]
|
|
229
|
+
then
|
|
230
|
+
source "$path/$module"
|
|
231
|
+
return 0
|
|
232
|
+
fi
|
|
233
|
+
done
|
|
234
|
+
IFS="$saved_IFS"
|
|
235
|
+
|
|
236
|
+
fi
|
|
237
|
+
echo -e "$eb_runtime_invoke_name: eb_incl: Could not find requested module \"$module\" in \$PATH, $eb_runtime_abs_invoke_dir, an includes/ subdirectory, or \$SHELL_LIBRARY_PATH." 1>&2 && return 1
|
|
238
|
+
#exit 1
|
|
239
|
+
}
|
|
240
|
+
fi
|
|
241
|
+
|
|
242
|
+
################## END easybashincl code snippet #################################
|
|
243
|
+
|
|
244
|
+
main
|
|
245
|
+
|
|
246
|
+
# EOF()
|
package/scripts/mom-cli.sh
DELETED
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Authors: Piero Proietti, Christopher Hopp
|
|
4
|
-
# xdg-settings get default-web-browser
|
|
5
|
-
|
|
6
|
-
##
|
|
7
|
-
# eggs dialog cli
|
|
8
|
-
##
|
|
9
|
-
|
|
10
|
-
function main {
|
|
11
|
-
|
|
12
|
-
while true; do
|
|
13
|
-
# 20 righe. 75 caratteri, 16 altezza menu list
|
|
14
|
-
answer=$(
|
|
15
|
-
whiptail --title "mommy" --menu "Mama's gonna keep baby cozy and warm..." 22 75 16 \
|
|
16
|
-
"adapt" "adapt monitor resolution for VM only" \
|
|
17
|
-
"calamares" "configure calamares or install and configure it" \
|
|
18
|
-
"dad" "ask help from daddy - configuration helper" \
|
|
19
|
-
"help" "display help for eggs" \
|
|
20
|
-
"kill" "kill the eggs/free the nest" \
|
|
21
|
-
"install" "krill TUI system installer - the egg becomes a chick" \
|
|
22
|
-
"produce" "the system produces an egg: iso image of your system" \
|
|
23
|
-
"status" "eggs status and informations" \
|
|
24
|
-
"update" "update the penguin's eggs tool" \
|
|
25
|
-
"documentation" "book/book_translated/manual/man" \
|
|
26
|
-
"export" "deb/docs/iso" \
|
|
27
|
-
"tools" "clean/skel/yolk" \
|
|
28
|
-
"wardrobe" "get/list/show/wear" \
|
|
29
|
-
"quit" "exit" 3>&2 2>&1 1>&3
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
case "$answer" in
|
|
33
|
-
"quit")
|
|
34
|
-
theEnd ;;
|
|
35
|
-
|
|
36
|
-
"config")
|
|
37
|
-
config ;;
|
|
38
|
-
|
|
39
|
-
"calamares")
|
|
40
|
-
calamares ;;
|
|
41
|
-
|
|
42
|
-
"adapt")
|
|
43
|
-
adapt ;;
|
|
44
|
-
|
|
45
|
-
"dad")
|
|
46
|
-
dad ;;
|
|
47
|
-
|
|
48
|
-
"help")
|
|
49
|
-
help ;;
|
|
50
|
-
|
|
51
|
-
"kill")
|
|
52
|
-
kill ;;
|
|
53
|
-
|
|
54
|
-
"install")
|
|
55
|
-
install ;;
|
|
56
|
-
|
|
57
|
-
"produce")
|
|
58
|
-
produce ;;
|
|
59
|
-
|
|
60
|
-
"status")
|
|
61
|
-
status ;;
|
|
62
|
-
|
|
63
|
-
"documentation")
|
|
64
|
-
documentation ;;
|
|
65
|
-
|
|
66
|
-
"export")
|
|
67
|
-
Export ;;
|
|
68
|
-
|
|
69
|
-
"tools")
|
|
70
|
-
tools ;;
|
|
71
|
-
|
|
72
|
-
"wardrobe")
|
|
73
|
-
wardrobe ;;
|
|
74
|
-
|
|
75
|
-
"update")
|
|
76
|
-
update ;;
|
|
77
|
-
|
|
78
|
-
esac
|
|
79
|
-
|
|
80
|
-
done
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
################################
|
|
84
|
-
function adapt {
|
|
85
|
-
adapt
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
################################
|
|
89
|
-
function calamares {
|
|
90
|
-
answer=$(
|
|
91
|
-
whiptail --title "Calamares installer" --menu "You can choose local or internet documentation, html or man" 22 75 14 \
|
|
92
|
-
"configure" "create calamares configuration" \
|
|
93
|
-
"install" "install calamares and create configuration" \
|
|
94
|
-
"remove" "remove calamares installer" \
|
|
95
|
-
"quit" "previous" 3>&2 2>&1 1>&3
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
case "$answer" in
|
|
99
|
-
"configure")
|
|
100
|
-
calamares_configure ;;
|
|
101
|
-
|
|
102
|
-
"install")
|
|
103
|
-
calamares_install ;;
|
|
104
|
-
|
|
105
|
-
"remove")
|
|
106
|
-
calamares_remove ;;
|
|
107
|
-
esac
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
################################
|
|
111
|
-
function calamares_configure {
|
|
112
|
-
sudo eggs calamares
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
################################
|
|
116
|
-
function calamares_install {
|
|
117
|
-
sudo eggs calamares --install
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
################################
|
|
121
|
-
function calamares_remove {
|
|
122
|
-
sudo eggs calamares --remove
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
################################
|
|
127
|
-
function dad {
|
|
128
|
-
sudo eggs dad
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
################################
|
|
132
|
-
function documentation {
|
|
133
|
-
answer=$(
|
|
134
|
-
whiptail --title "DOCUMENTATION" --menu "You can choose local or internet documentation, html or man" 22 75 14 \
|
|
135
|
-
"book" "gui/internet penguin's eggs book - italian -" \
|
|
136
|
-
"book_translated" "gui/internet penguin's eggs book - translated -" \
|
|
137
|
-
"manual" "gui/local man page eggs html" \
|
|
138
|
-
"man" "cli/local man page eggs" \
|
|
139
|
-
"quit" "previous" 3>&2 2>&1 1>&3
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
case "$answer" in
|
|
143
|
-
"book")
|
|
144
|
-
documentation_book ;;
|
|
145
|
-
"book_translated")
|
|
146
|
-
documentation_book_translated ;;
|
|
147
|
-
"man")
|
|
148
|
-
documentation_man ;;
|
|
149
|
-
"manual")
|
|
150
|
-
documentation_html ;;
|
|
151
|
-
esac
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
################################
|
|
155
|
-
function documentation_book {
|
|
156
|
-
xdg-open "https://penguins-eggs.net/book/italiano"
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
################################
|
|
160
|
-
function documentation_book_translated {
|
|
161
|
-
# sensible-editor sensible-pager
|
|
162
|
-
xdg-open "https://translate.google.com/translate?hl=en&sl=auto&tl=en&u=https%3A%2F%2Fpenguins-eggs.net%2Fbook%2Fitaliano"
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
################################
|
|
166
|
-
function documentation_site {
|
|
167
|
-
xdg-open "https://penguins-eggs.net"
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
################################
|
|
171
|
-
function documentation_man {
|
|
172
|
-
man_eggs='/usr/bin/man eggs'
|
|
173
|
-
${man_eggs}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
################################
|
|
177
|
-
function documentation_html {
|
|
178
|
-
xdg-open "file:///usr/lib/penguins-eggs/manpages/doc/man/eggs.html"
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
################################
|
|
184
|
-
function Export {
|
|
185
|
-
|
|
186
|
-
answer=$(
|
|
187
|
-
whiptail --title "EXPORT" --menu "Export your eggs or packages in remote host..." 22 75 14 \
|
|
188
|
-
"deb" "export package eggs-v7-x-x-1.deb in the destination host" \
|
|
189
|
-
"iso" "export iso image in the destination host" \
|
|
190
|
-
"quit" "previous" 3>&2 2>&1 1>&3
|
|
191
|
-
)
|
|
192
|
-
|
|
193
|
-
case "$answer" in
|
|
194
|
-
"deb")
|
|
195
|
-
export_deb ;;
|
|
196
|
-
|
|
197
|
-
"iso")
|
|
198
|
-
export_iso ;;
|
|
199
|
-
esac
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
################################
|
|
203
|
-
function export_deb {
|
|
204
|
-
eggs export:deb -c
|
|
205
|
-
press_a_key_to_continue
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
################################
|
|
209
|
-
function export_docs {
|
|
210
|
-
eggs export:docs
|
|
211
|
-
press_a_key_to_continue
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
################################
|
|
215
|
-
function export_iso {
|
|
216
|
-
eggs export:iso -c
|
|
217
|
-
press_a_key_to_continue
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
################################
|
|
221
|
-
function help {
|
|
222
|
-
eggs help
|
|
223
|
-
press_a_key_to_continue
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
################################
|
|
227
|
-
function status {
|
|
228
|
-
eggs status
|
|
229
|
-
press_a_key_to_continue
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
################################
|
|
233
|
-
function kill {
|
|
234
|
-
sudo eggs kill
|
|
235
|
-
press_a_key_to_continue
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
################################
|
|
239
|
-
function install {
|
|
240
|
-
sudo eggs install
|
|
241
|
-
press_a_key_to_continue
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
################################
|
|
245
|
-
function produce {
|
|
246
|
-
answer=$(
|
|
247
|
-
whiptail --title "produce" --menu "Choose the prefered method of production..." 22 75 14 \
|
|
248
|
-
"fast" "create an ISO fast compression" \
|
|
249
|
-
"max" "create an ISO max compression" \
|
|
250
|
-
"clone" "create a live clone with user's data" \
|
|
251
|
-
"quit" "previous" 3>&2 2>&1 1>&3
|
|
252
|
-
)
|
|
253
|
-
|
|
254
|
-
case "$answer" in
|
|
255
|
-
"fast")
|
|
256
|
-
fast ;;
|
|
257
|
-
|
|
258
|
-
"max")
|
|
259
|
-
max ;;
|
|
260
|
-
|
|
261
|
-
"clone")
|
|
262
|
-
clone;;
|
|
263
|
-
|
|
264
|
-
esac
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
################################
|
|
268
|
-
function fast {
|
|
269
|
-
sudo eggs produce --fast
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
################################
|
|
273
|
-
function standard {
|
|
274
|
-
sudo eggs produce
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
################################
|
|
278
|
-
function max {
|
|
279
|
-
sudo eggs produce --max
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
################################
|
|
283
|
-
function clone {
|
|
284
|
-
sudo eggs produce --fast --clone
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
################################
|
|
288
|
-
function tools {
|
|
289
|
-
answer=$(
|
|
290
|
-
whiptail --title "TOOLS" --menu "eggs companions tools" 22 75 14 \
|
|
291
|
-
"clean" "clean system logs, packages manager cache, etc" \
|
|
292
|
-
"skel" "update /etc/skel from current user" \
|
|
293
|
-
"yolk" "configure an internal apt repository in /var/local/yolk" \
|
|
294
|
-
"quit" "previous" 3>&2 2>&1 1>&3
|
|
295
|
-
)
|
|
296
|
-
|
|
297
|
-
case "$answer" in
|
|
298
|
-
"clean")
|
|
299
|
-
tools_clean ;;
|
|
300
|
-
|
|
301
|
-
"skel")
|
|
302
|
-
tools_skel ;;
|
|
303
|
-
|
|
304
|
-
"yolk")
|
|
305
|
-
tools_yolk ;;
|
|
306
|
-
esac
|
|
307
|
-
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
################################
|
|
311
|
-
function tools_clean {
|
|
312
|
-
sudo eggs tools:clean
|
|
313
|
-
press_a_key_to_continue
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
################################
|
|
317
|
-
function tools_skel {
|
|
318
|
-
sudo eggs tools:skel
|
|
319
|
-
press_a_key_to_continue
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
################################
|
|
323
|
-
function tools_yolk {
|
|
324
|
-
sudo eggs tools:yolk
|
|
325
|
-
press_a_key_to_continue
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
################################
|
|
329
|
-
function update {
|
|
330
|
-
sudo eggs update
|
|
331
|
-
press_a_key_to_continue
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
################################
|
|
335
|
-
function wardrobe {
|
|
336
|
-
answer=$(
|
|
337
|
-
whiptail --title "TOOLS" --menu "eggs companions tools" 22 75 14 \
|
|
338
|
-
"get" "get warorobe" \
|
|
339
|
-
"list" "list costumes" \
|
|
340
|
-
"show" "show costumes" \
|
|
341
|
-
"wear" "wear costume" \
|
|
342
|
-
"quit" "previous" 3>&2 2>&1 1>&3
|
|
343
|
-
)
|
|
344
|
-
|
|
345
|
-
case "$answer" in
|
|
346
|
-
"get")
|
|
347
|
-
wardrobe_get ;;
|
|
348
|
-
|
|
349
|
-
"list")
|
|
350
|
-
wardrobe_list ;;
|
|
351
|
-
|
|
352
|
-
"show")
|
|
353
|
-
wardrobe_show ;;
|
|
354
|
-
|
|
355
|
-
"wear")
|
|
356
|
-
wardrobe_wear ;;
|
|
357
|
-
esac
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
################################
|
|
362
|
-
function wardrobe_get {
|
|
363
|
-
eggs wardrobe get
|
|
364
|
-
press_a_key_to_continue
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
################################
|
|
368
|
-
function wardrobe_ironing {
|
|
369
|
-
eggs wardrobe ironing
|
|
370
|
-
press_a_key_to_continue
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
################################
|
|
374
|
-
function wardrobe_list {
|
|
375
|
-
eggs wardrobe list
|
|
376
|
-
press_a_key_to_continue
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
################################
|
|
380
|
-
function wardrobe_show {
|
|
381
|
-
eggs wardrobe show
|
|
382
|
-
press_a_key_to_continue
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
################################
|
|
386
|
-
function wardrobe_wear {
|
|
387
|
-
sudo eggs wardrobe wear
|
|
388
|
-
press_a_key_to_continue
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
function press_a_key_to_continue {
|
|
394
|
-
read -rp "Press enter to continue"
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
################################
|
|
398
|
-
function theEnd {
|
|
399
|
-
#clear
|
|
400
|
-
exit 0
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
main
|