Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
sohka
neutrinet_cube_install
Commits
d0ebbfa5
Commit
d0ebbfa5
authored
Nov 07, 2019
by
Antoine Jacques de Dixmude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
parent
28257788
Pipeline
#150
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
neutrinet_cube_install.sh
neutrinet_cube_install.sh
+7
-2
No files found.
neutrinet_cube_install.sh
View file @
d0ebbfa5
...
...
@@ -624,8 +624,10 @@ function flash_sd_card() {
then
download_install_sd_script
fi
CUSTOM_SCRIPT_PATH
=
"
$(
realpath
$OPT_CUSTOMSCRIPTPATH
)
"
"./
$CUBE_RESOURCES_LOCATION
/
$INSTALL_SD_SCRIPT_NAME
"
-y
"
$HYPERCUBE_FILE
"
-f
"
$CUBE_RESOURCES_LOCATION
/
$image
"
"./
$CUBE_RESOURCES_LOCATION
/
$INSTALL_SD_SCRIPT_NAME
"
-y
"
$HYPERCUBE_FILE
"
-f
"
$CUBE_RESOURCES_LOCATION
/
$image
"
-c
"
$CUSTOM_SCRIPT_PATH
"
}
function
prepare_cube
()
{
...
...
@@ -697,6 +699,8 @@ function show_help() {
echo
-e
"
\e
[1m-p
\e
[0m"
>
&2
echo
-e
" Downloads and prepares all general images and files needed for installing the cube"
>
&2
echo
-e
"
\e
[2mNext time this script is ran from the same folder as it is ran now, these files and scrips will be used
\e
[0m"
>
&2
echo
-e
"
\e
[1m-c
\e
[0m
\e
[4mpath
\e
[0m"
>
&2
echo
-e
" Include custom script to be executed at the end of system installation"
>
&2
echo
-e
"
\e
[1m-h
\e
[0m"
>
&2
echo
-e
" Show this help"
>
&2
}
...
...
@@ -720,10 +724,11 @@ function prepare() {
# GET OPTIONS
#=================================================
while
getopts
"vhp"
opt
;
do
while
getopts
"vhp
c:
"
opt
;
do
case
$opt
in
v
)
LOG_LEVEL
=
${
LOG_LEVELS
[DEBUG]
}
;;
p
)
prepare
;
exit
0
;;
c
)
opt_customscriptpath
=
$OPTARG
;;
h
)
show_help
;
exit
0
;;
\?
)
show_help
;
exit
0
;;
esac
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment