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
8590c46d
Commit
8590c46d
authored
Apr 04, 2018
by
Igor Pecovnik
Browse files
Bugfix. Create armbianEnv.txt when upgrading from a legacy kernels on Odroid C1/C2
parent
16c96c97
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
8590c46d
...
...
@@ -1099,6 +1099,8 @@ function jobs ()
# install new boot script
[[
-f
/usr/share/armbian/boot.cmd
]]
&&
cp
/usr/share/armbian/boot.cmd /boot/boot.cmd
&&
mkimage
-C
none
-A
arm
-T
script
-d
/boot/boot.cmd /boot/boot.scr
[[
-f
/usr/share/armbian/boot.ini
]]
&&
cp
/usr/share/armbian/boot.ini /boot/boot.ini
# create armbianEnv.txt
[[
!
-f
/boot/armbianEnv.txt
]]
&&
printf
"verbosity=1
\n
rootdev=
$(
sed
-e
's/^.*root=//'
-e
's/ .*$//'
< /proc/cmdline
)
"
>
/boot/armbianEnv.txt
dialog
--title
"Kernel switch"
--backtitle
"
$BACKTITLE
"
--yes-label
"Yes"
--no-label
"Cancel"
\
--yesno
"
\n
New kernel was installed. Reboot?"
7 64
...
...
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