Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
930a40c7
Commit
930a40c7
authored
Oct 26, 2017
by
Igor Pecovnik
Browse files
Few cosmetic fixes
parent
52a03fcd
Changes
2
Show whitespace changes
Inline
Side-by-side
debian-config
View file @
930a40c7
...
...
@@ -34,7 +34,6 @@ fi
source
"
$0
""-submenu"
source
"
$0
""-jobs"
#-----------------------------------------------------------------------------------------------------------------------------------------#
# Main menu
#
...
...
@@ -51,16 +50,21 @@ do
# count number of menu items to adjust window size
LISTLENGHT
=
"
$((
11
+
${#
LIST
[@]
}
/
2
))
"
BOXLENGHT
=
${#
LIST
[@]
}
MENUTITLE
=
"Configuration tool for the
\Z
1
${
BOARD_NAME
}
\Z
0 running
\Z
1
$DISTRO
$DISTROID
\Z
0"
MENUTITLE
=
"Configuration tool "
[[
-n
"
${
BOARD_NAME
/ /
}
"
]]
&&
MENUTITLE
=
$MENUTITLE
"for the
\Z
1
${
BOARD_NAME
}
\Z
0"
MENUTITLE
=
$MENUTITLE
"running
\Z
1
$DISTRO
$DISTROID
\Z
0"
# main dialog routine
DIALOG_CANCEL
=
1
DIALOG_ESC
=
255
TITLELENGHT
=
${#
MENUTITLE
}
[[
"
$TITLELENGHT
"
-lt
50
]]
&&
TITLELENGHT
=
"70"
exec
3>&1
selection
=
$(
dialog
--colors
--backtitle
"
$BACKTITLE
"
--title
" armbian-config "
--clear
\
--cancel-label
"Cancel"
--menu
"
\n
$MENUTITLE
\n
\n
Support:
\Z
1https://www.armbian.com
\Z
0
\n
"
\
$LISTLENGHT
${
#
MENU
TITLE
}
$BOXLENGHT
"
${
LIST
[@]
}
"
2>&1 1>&3
)
$LISTLENGHT
${
TITLE
LENGHT
}
$BOXLENGHT
"
${
LIST
[@]
}
"
2>&1 1>&3
)
exit_status
=
$?
exec
3>&-
...
...
debian-config-submenu
View file @
930a40c7
...
...
@@ -18,6 +18,7 @@ DIALOG_ESC=255
DISTRO
=
$(
lsb_release
-is
)
DISTROID
=
$(
lsb_release
-sc
)
KERNELID
=
$(
uname
-r
)
[[
-z
"
${
ARMBIAN
//
}
"
]]
&&
ARMBIAN
=
$KERNELID
BACKTITLE
=
"Configuration utility,
$ARMBIAN
, https://www.armbian.com"
TITLE
=
"
$BOARD_NAME
"
DEFAULT_ADAPTER
=
$(
ip
-4
route
ls
|
grep
default |
grep
-Po
'(?<=dev )(\S+)'
)
...
...
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