Fixed bug on apt install
This commit is contained in:
parent
485d491bf1
commit
ff0976bee0
1 changed files with 17 additions and 18 deletions
35
pkgkernel.sh
35
pkgkernel.sh
|
@ -64,6 +64,23 @@ if [[ $EUID -ne 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install build dependancies
|
||||||
|
apt install -y \
|
||||||
|
build-essential \
|
||||||
|
fakeroot \
|
||||||
|
dpkg-dev \
|
||||||
|
perl \
|
||||||
|
libssl-dev \
|
||||||
|
bc \
|
||||||
|
gnupg \
|
||||||
|
dirmngr \
|
||||||
|
libelf-dev \
|
||||||
|
flex \
|
||||||
|
bison \
|
||||||
|
libncurses-dev \
|
||||||
|
rsync \
|
||||||
|
git \
|
||||||
|
curl
|
||||||
|
|
||||||
if [ "${ARCHIVE}" != "" ] ; then
|
if [ "${ARCHIVE}" != "" ] ; then
|
||||||
FILE=`basename "$ARCHIVE"`
|
FILE=`basename "$ARCHIVE"`
|
||||||
|
@ -92,24 +109,6 @@ DIR="/usr/src/${KERNEL}"
|
||||||
# Make directory in /usr/src/
|
# Make directory in /usr/src/
|
||||||
mkdir "${DIR}"
|
mkdir "${DIR}"
|
||||||
|
|
||||||
# Install build dependancies
|
|
||||||
apt install -y \
|
|
||||||
build-essential \
|
|
||||||
fakeroot \
|
|
||||||
dpkg-dev \
|
|
||||||
perl \
|
|
||||||
libssl-dev \
|
|
||||||
bc \
|
|
||||||
gnupg \
|
|
||||||
dirmngr \
|
|
||||||
libelf-dev \
|
|
||||||
flex \
|
|
||||||
bison \
|
|
||||||
libncurses-dev \
|
|
||||||
rsync \
|
|
||||||
git \
|
|
||||||
curl
|
|
||||||
|
|
||||||
# Go to build dir
|
# Go to build dir
|
||||||
cd "${DIR}" || exit
|
cd "${DIR}" || exit
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue