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
a60e8461
Commit
a60e8461
authored
May 03, 2018
by
Igor Pecovnik
Browse files
Kernel headers install/uninstall bugfix
parent
851fc2bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
a60e8461
...
...
@@ -134,27 +134,34 @@ function jobs ()
;;
#
# Install kernel headers
#
"Headers"
)
if
!
is_package_manager_running
;
then
TARGET_BRANCH
=
$BRANCH
exceptions
"
$BRANCH
"
REMOVE_PKG
=
"linux-headers-*"
if
[[
-d
/etc/armbian
]]
;
then
INSTALL_PKG
=
"linux-headers
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
"
;
else
INSTALL_PKG
=
"linux-headers-
$(
uname
-r
|
sed
's/'
-
$(
dpkg
--print-architecture
)
'//'
)
"
;
fi
if
[[
-n
$(
dpkg
-l
|
grep
linux-headers
)
]]
;
then
debconf-apt-progress
--
apt-get
-y
purge
${
INSTALL
_PKG
}
debconf-apt-progress
--
apt-get
-y
purge
${
REMOVE
_PKG
}
else
debconf-apt-progress
--
apt-get
-y
install
${
INSTALL_PKG
}
debconf-apt-progress
--
apt-get
-y
install
${
INSTALL_PKG
}
fi
# cleanup
debconf-apt-progress
--
apt
-y
autoremove
fi
;;
# Toggle mini and full firmware
#
"Full"
|
"Mini"
)
...
...
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