mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
21 lines
338 B
Bash
Executable File
21 lines
338 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Minimum requirements to run ./build --download-dependencies
|
|
if [ $# -eq 1 ]; then
|
|
y=-y
|
|
else
|
|
y=
|
|
fi
|
|
if [ -f /.dockerenv ]; then
|
|
sudo=
|
|
else
|
|
sudo=sudo
|
|
fi
|
|
$sudo apt-get update
|
|
$sudo apt-get install $y \
|
|
git \
|
|
python3 \
|
|
python3-pip \
|
|
python3-distutils \
|
|
;
|
|
python3 -m pip install --user -r requirements.txt
|