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
e0441c8a
Commit
e0441c8a
authored
May 18, 2017
by
Igor Pecovnik
Browse files
Add edit boot.ini
parent
bed100a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config
View file @
e0441c8a
...
@@ -228,7 +228,8 @@ while true; do
...
@@ -228,7 +228,8 @@ while true; do
[[
-f
/usr/bin/armbianmonitor
]]
&&
LIST+
=(
"Diagnostics"
"Send diagnostics"
)
[[
-f
/usr/bin/armbianmonitor
]]
&&
LIST+
=(
"Diagnostics"
"Send diagnostics"
)
[[
-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+
=(
"Bootenv"
"Edit boot environment"
)
[[
-f
/boot/boot.ini
]]
&&
LIST+
=(
"Bootscript"
"Edit boot script"
)
LIST+
=(
"Network"
"Edit network settings"
)
LIST+
=(
"Network"
"Edit network settings"
)
LIST+
=(
"-"
""
)
LIST+
=(
"-"
""
)
LIST+
=(
"Services"
"Toggle running services"
)
LIST+
=(
"Services"
"Toggle running services"
)
...
@@ -535,12 +536,21 @@ while true; do
...
@@ -535,12 +536,21 @@ while true; do
# Edit boot environment
# Edit boot environment
#
#
"Boot
ing
"
)
"Boot
env
"
)
dialog
--title
"Edit u-boot environment"
--ok-label
"Save"
\
dialog
--title
"Edit u-boot environment"
--ok-label
"Save"
\
--no-collapse
--editbox
/boot/armbianEnv.txt 30 0 2> /boot/armbianEnv.txt.out
--no-collapse
--editbox
/boot/armbianEnv.txt 30 0 2> /boot/armbianEnv.txt.out
[[
$?
=
0
]]
&&
mv
/boot/armbianEnv.txt.out /boot/armbianEnv.txt
[[
$?
=
0
]]
&&
mv
/boot/armbianEnv.txt.out /boot/armbianEnv.txt
;;
;;
# Edit boot script
#
"Bootscript"
)
if
[[
-f
/boot/boot.ini
]]
;
then
dialog
--title
"Edit boot.ini script"
--ok-label
"Save"
\
--no-collapse
--editbox
/boot/boot.ini 30 0 2> /boot/boot.ini.out
[[
$?
=
0
]]
&&
mv
/boot/boot.ini.out /boot/boot.ini
fi
;;
# Switch to daily builds
# Switch to daily builds
#
#
...
...
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