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
f6b5fc5a
"vscode:/vscode.git/clone" did not exist on "4940e7a75eb0d0a5805e5add06c4d34a6e59235d"
Commit
f6b5fc5a
authored
May 06, 2017
by
Igor Pecovnik
Browse files
Add h3consumption tool and small menu rearange
parent
5968db68
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config
View file @
f6b5fc5a
...
...
@@ -138,11 +138,13 @@ LIST=()
[[
-f
/usr/sbin/nand-sata-install
]]
&&
LIST+
=(
"Install"
"Install to SATA, eMMC, NAND or USB target media"
)
[[
-n
$(
nmcli
-f
DEVICE,TYPE device status |
grep
wifi
)
]]
&&
LIST+
=(
"WiFi"
"Connect to wireless access point"
)
[[
-n
$(
nmcli
-f
DEVICE,TYPE device status |
grep
wifi
)
]]
&&
LIST+
=(
"Hotspot"
"Create or manage WiFi access point"
)
[[
-f
/usr/bin/h3disp
&&
"
$LINUXFAMILY
"
=
"sun8i"
&&
"
$BRANCH
"
=
"default"
&&
-n
$(
bin2fex </boot/script.bin 2>/dev/null |
grep
-w
"hdmi_used = 1"
)
]]
&&
LIST+
=(
"Display"
"set the display resolution"
)
[[
-f
/usr/bin/softy
]]
&&
LIST+
=(
"Softy"
"Application installer"
)
LIST+
=(
"-"
""
)
[[
-f
/usr/bin/h3consumption
&&
"
$LINUXFAMILY
"
=
"sun8i"
&&
"
$BRANCH
"
=
"default"
]]
&&
LIST+
=(
"Consumption"
"Control board consumption"
)
[[
-f
/usr/bin/armbianmonitor
]]
&&
LIST+
=(
"Monitor"
"Simple CLI monitoring"
)
[[
-f
/usr/bin/armbianmonitor
]]
&&
LIST+
=(
"Diagnostics"
"Send diagnostics"
)
[[
-f
/usr/bin/h3disp
&&
"
$LINUXFAMILY
"
=
"sun8i"
&&
"
$BRANCH
"
=
"default"
&&
-n
$(
bin2fex </boot/script.bin 2>/dev/null |
grep
-w
"hdmi_used = 1"
)
]]
&&
LIST+
=(
"Display"
"set the display resolution"
)
[[
-f
/usr/bin/bin2fex
&&
"
$LINUXFAMILY
"
=
sun
*
i
&&
"
$BRANCH
"
=
"default"
]]
&&
LIST+
=(
"Fexedit"
"Board (fex) settings editor"
)
[[
-n
$(
grep
-w
"#kernel.printk"
/etc/sysctl.conf
)
]]
&&
LIST+
=(
"Lowlevel"
"Stop low-level messages on console"
)
[[
-f
/boot/armbianEnv.txt
]]
&&
LIST+
=(
"Booting"
"Edit boot environment"
)
...
...
@@ -199,6 +201,10 @@ DIALOG_ESC=255
h3disp
exit
;;
"Consumption"
)
h3consumption
exit
;;
"Fexedit"
)
TEMP
=
$(
mktemp
-d
||
exit
1
)
trap
"rm -rf
\"
${
TEMP
}
\"
; exit 0"
0 1 2 3 15
...
...
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