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
28a4d96e
Commit
28a4d96e
authored
Aug 11, 2018
by
Igor Pecovnik
Browse files
Adding LF and SED works better with -i
parent
b0cf22e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
28a4d96e
...
...
@@ -1281,9 +1281,9 @@ 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
&&
sed
"s/setenv rootdev.*/setenv rootdev
\"
"
$(
sed
-e
's/^.*root=//'
-e
's/ .*$//'
< /proc/cmdline
)
"
\"
/"
/boot/boot.ini
[[
-f
/usr/share/armbian/boot.ini
]]
&&
cp
/usr/share/armbian/boot.ini /boot/boot.ini
&&
sed
-i
"s/setenv rootdev.*/setenv rootdev
\"
"
$(
sed
-e
's/^.*root=//'
-e
's/ .*$//'
< /proc/cmdline
)
"
\"
/"
/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
[[
!
-f
/boot/armbianEnv.txt
]]
&&
printf
"verbosity=1
\n
rootdev=
$(
sed
-e
's/^.*root=//'
-e
's/ .*$//'
< /proc/cmdline
)
\n
"
>
/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