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
61af6a16
Commit
61af6a16
authored
Feb 24, 2018
by
Igor Pecovnik
Browse files
Kernel change is not possible when packages are frozen, remove from menu.
parent
fad1fc34
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-submenu
View file @
61af6a16
...
...
@@ -611,9 +611,11 @@ while true; do
LIST
=()
local
mark
=
$(
apt-mark showhold |
grep
-w
"
$BOARD
"
)
[[
$(
sed
-n
's/^DEVNAME=//p'
/sys/dev/block/
$(
mountpoint
-d
/
)
/uevent 2> /dev/null
)
==
mmcblk
*
&&
-f
/usr/sbin/nand-sata-install
]]
\
&&
LIST+
=(
"Install"
"Install to SATA, eMMC, NAND or USB"
)
if
[[
-n
$(
apt-mark showhold |
grep
-w
"
$BOARD
"
)
]]
;
then
if
[[
-n
"
${
mark
}
"
]]
;
then
LIST+
=(
"Defreeze"
"Enable kernel upgrades"
)
else
LIST+
=(
"Freeze"
"Disable kernel upgrades"
)
...
...
@@ -633,7 +635,7 @@ while true; do
[[
"
$LINUXFAMILY
"
=
cubox
&&
"
$BRANCH
"
=
"next"
]]
&&
LIST+
=(
"DTB"
"Switch board .dtb configuration"
)
[[
-f
/usr/bin/bin2fex
&&
"
$LINUXFAMILY
"
=
sun
*
i
&&
"
$BRANCH
"
=
"default"
]]
&&
LIST+
=(
"Fexedit"
"Board (fex) settings editor"
)
[[
$(
apt-cache search
--names-only
'^linux-'
$(
lsb_release
-cs
)
'-root.*.'
$BOARD
''
|
sed
's/.*(\(.*\))/\1/'
|
awk
'{print $1}'
\
|
wc
-l
)
-gt
1
]]
&&
LIST+
=(
"Switch"
"Switch to alternative kernels"
)
|
wc
-l
)
-gt
1
&&
-z
"
${
mark
}
"
]]
&&
LIST+
=(
"Switch"
"Switch to alternative kernels"
)
LIST+
=(
"SSH"
"Reconfigure SSH daemon"
)
...
...
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