Commit e0441c8a authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Add edit boot.ini

parent bed100a9
...@@ -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
# #
"Booting" ) "Bootenv" )
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
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment