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
Commit
f6b5fc5a
authored
May 06, 2017
by
Igor Pecovnik
Browse files
Add h3consumption tool and small menu rearange
parent
5968db68
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config
View file @
f6b5fc5a
...
@@ -138,11 +138,13 @@ LIST=()
...
@@ -138,11 +138,13 @@ LIST=()
[[
-f
/usr/sbin/nand-sata-install
]]
&&
LIST+
=(
"Install"
"Install to SATA, eMMC, NAND or USB target media"
)
[[
-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+
=(
"WiFi"
"Connect to wireless access point"
)
[[
-n
$(
nmcli
-f
DEVICE,TYPE device status |
grep
wifi
)
]]
&&
LIST+
=(
"Hotspot"
"Create or manage WiFi 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"
)
[[
-f
/usr/bin/softy
]]
&&
LIST+
=(
"Softy"
"Application installer"
)
LIST+
=(
"-"
""
)
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+
=(
"Monitor"
"Simple CLI monitoring"
)
[[
-f
/usr/bin/armbianmonitor
]]
&&
LIST+
=(
"Diagnostics"
"Send diagnostics"
)
[[
-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"
)
[[
-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"
)
[[
-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"
)
[[
-f
/boot/armbianEnv.txt
]]
&&
LIST+
=(
"Booting"
"Edit boot environment"
)
...
@@ -199,6 +201,10 @@ DIALOG_ESC=255
...
@@ -199,6 +201,10 @@ DIALOG_ESC=255
h3disp
h3disp
exit
exit
;;
;;
"Consumption"
)
h3consumption
exit
;;
"Fexedit"
)
"Fexedit"
)
TEMP
=
$(
mktemp
-d
||
exit
1
)
TEMP
=
$(
mktemp
-d
||
exit
1
)
trap
"rm -rf
\"
${
TEMP
}
\"
; exit 0"
0 1 2 3 15
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