-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-vfio
40 lines (34 loc) · 889 Bytes
/
deploy-vfio
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
#!/bin/bash/env bash
#
# Filename: deploy-vfio
# Description: Main executable. See README for details and usage.
# Author(s): Alex Portell <github.com/portellam>
# Maintainer(s): Alex Portell <github.com/portellam>
#
# <params>
declare -g SCRIPT_DIR="/usr/local/bin/"
declare -g SCRIPT_BIN_DIR="${SCRIPT_DIR}deploy-vfio.d/"
# <params>
# <sources>
source "${SCRIPT_BIN_DIR}sources"
# </sources>
# <functions>
function main
{
local has_skipped_main_setup=false
set_ifs_to_newline
is_user_superuser
get_options "$@"
is_system_supported
do_pre_setup
do_parse_database
do_main_setup || has_skipped_main_setup=true
# do_post_setup # <note>Post setup is not complete at the moment. Saving for future release</note>
if "${has_skipped_main_setup}"; then
exit 255
fi
}
# </functions>
# <code>
main "$@"
# </code>