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
4f6131bc
Commit
4f6131bc
authored
Jan 19, 2018
by
Igor Pecovnik
Browse files
Don't change configuration files when switching kernels or conduct apt upgrade from menu
parent
37789a62
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
4f6131bc
...
@@ -643,7 +643,7 @@ function jobs ()
...
@@ -643,7 +643,7 @@ function jobs ()
dialog
--title
" Update "
--backtitle
"
$BACKTITLE
"
--no-label
"Cancel"
--yesno
"
\n
Do you want to update board firmware?"
7 41
dialog
--title
" Update "
--backtitle
"
$BACKTITLE
"
--no-label
"Cancel"
--yesno
"
\n
Do you want to update board firmware?"
7 41
if
[[
$?
=
0
]]
;
then
if
[[
$?
=
0
]]
;
then
debconf-apt-progress
--
apt-get update
debconf-apt-progress
--
apt-get update
debconf-apt-progress
--
apt-get
-y
upgrade
debconf-apt-progress
--
apt-get
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
-y
upgrade
dialog
--title
" Firmware update "
--colors
--no-label
"Cancel"
--backtitle
"
$BACKTITLE
"
--yesno
\
dialog
--title
" Firmware update "
--colors
--no-label
"Cancel"
--backtitle
"
$BACKTITLE
"
--yesno
\
"
\n
Firmware has been updated. Reboot? "
7 39
"
\n
Firmware has been updated. Reboot? "
7 39
if
[[
$?
=
0
]]
;
then
reboot
;
fi
if
[[
$?
=
0
]]
;
then
reboot
;
fi
...
@@ -1033,7 +1033,7 @@ function jobs ()
...
@@ -1033,7 +1033,7 @@ function jobs ()
INSTALL_DTB
=
""
INSTALL_DTB
=
""
[[
-n
$(
apt-cache search
--names-only
"^linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
)
]]
&&
\
[[
-n
$(
apt-cache search
--names-only
"^linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
)
]]
&&
\
INSTALL_DTB
=
"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
}
\
debconf-apt-progress
--
apt-get
-
-reinstall
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
-y
-qq
--no-install-recommends
install
linux-image
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
\
linux-headers
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
linux-u-boot-
${
BOARD
}
-
${
UBOOT_BRANCH
}
\
linux-headers
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
linux-u-boot-
${
BOARD
}
-
${
UBOOT_BRANCH
}
\
linux-
$(
lsb_release
-cs
)
-root
$TARGET_BRANCH
-
$BOARD
$INSTALL_DTB
linux-
$(
lsb_release
-cs
)
-root
$TARGET_BRANCH
-
$BOARD
$INSTALL_DTB
...
...
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