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
e0d8429a
Commit
e0d8429a
authored
Aug 06, 2017
by
Igor Pecovnik
Browse files
Kernel switching bugfix
parent
bbd056c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config
View file @
e0d8429a
...
...
@@ -918,12 +918,15 @@ while true; do
aptitude remove ~nlinux-headers
--quiet
=
100
>>
/var/log/upgrade.log
fi
# install new
INSTALL_DTB
=
""
[[
-n
$(
apt-cache search
--names-only
"^linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
)
]]
&&
INSTALL_DTB
=
"linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
debconf-apt-progress
--
apt-get
-y
--no-install-recommends
install
linux-image
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
\
linux-headers
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
linux-u-boot-
${
BOARD
}
-
${
UBOOT_BRANCH
}
\
linux-
$(
lsb_release
-cs
)
-root
$TARGET_BRANCH
-
$BOARD
[[
$UBOOT_BRANCH
!=
"default"
]]
&&
debconf-apt-progress
--
apt-get
-y
--no-install-recommends
\
install
linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
reboot
linux-
$(
lsb_release
-cs
)
-root
$TARGET_BRANCH
-
$BOARD
$INSTALL_DTB
dialog
--title
"Kernel switch"
--backtitle
"
$BACKTITLE
"
--yes-label
"Yes"
--no-label
"Cancel"
--yesno
"
\n
New kernel was installed. Reboot?"
7 64
exitstatus
=
$?
;
[[
$exitstatus
=
0
]]
&&
reboot
fi
;;
...
...
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