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
ec3166c0
Commit
ec3166c0
authored
Sep 30, 2018
by
Igor Pecovnik
Browse files
Add kernel sources install
parent
cb8665d0
Changes
2
Show whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
ec3166c0
...
...
@@ -163,6 +163,25 @@ function jobs ()
#
# Install kernel source
#
"Source"
)
if
!
is_package_manager_running
;
then
if
[[
-n
$(
dpkg
-l
|
grep
$SOURCE_PKG
)
]]
;
then
debconf-apt-progress
--
apt-get
-y
purge
${
SOURCE_PKG
}
# cleanup
debconf-apt-progress
--
apt
-y
autoremove
else
debconf-apt-progress
--
apt-get
-y
install
${
SOURCE_PKG
}
dialog
--colors
--backtitle
"
$BACKTITLE
"
--no-collapse
--title
" Kernel source "
--clear
--msgbox
"
\n
You will find compressed kernel source and configuration in /usr/src"
7 72
fi
fi
;;
# Toggle mini and full firmware
#
"Full"
|
"Mini"
)
...
...
debian-config-submenu
View file @
ec3166c0
...
...
@@ -324,6 +324,12 @@ while true; do
if
[[
-n
$(
dpkg
-l
|
grep
linux-headers
)
]]
;
then
LIST+
=(
"Headers"
"Remove kernel headers"
)
;
else
\
LIST+
=(
"Headers"
"Install kernel headers"
)
;
fi
SOURCE_PKG
=
$(
apt-cache
--names-only
search ^linux-source-
*
|
awk
'{ print $1 }'
|
grep
${
BRANCH
}
-
${
LINUXFAMILY
}
|
tail
-1
)
if
[[
-n
$SOURCE_PKG
]]
;
then
if
[[
-n
$(
dpkg
-l
|
grep
$SOURCE_PKG
)
]]
;
then
LIST+
=(
"Source"
"Remove kernel source"
)
;
else
\
LIST+
=(
"Source"
"Install kernel source"
)
;
fi
fi
if
[[
-f
/etc/armbian.txt
]]
;
then
if
[[
-n
$(
dpkg
-l
|
grep
-w
"armbian-firmware-full "
)
]]
;
then
LIST+
=(
"Mini"
"Install mini firmware package"
)
;
...
...
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