Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
ceamac committed Jul 27, 2022
1 parent 751ecd5 commit 774b549
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*~
*.swp
*.tar.xz
*.deb
24 changes: 24 additions & 0 deletions make-vbox-modules-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#! /bin/bash

set -e

DISTRO='Debian~bullseye_amd64'

LINK=$(curl https://www.virtualbox.org/wiki/Linux_Downloads | grep ".*${DISTRO}\.deb" | sed -e 's/^.*href="//' -e 's/".*$//')
FILE=${LINK##*/}
VERSION=${FILE#*_}
VERSION=${VERSION%%-*}
DEST="vbox-kernel-module-src-${VERSION}.tar.xz"
[ -f "${DEST}" ] && echo "${DEST} exists" && exit
wget -nc "${LINK}"

rm -f control.tar.xz data.tar.xz debian-binary
rm -fR out
mkdir out

ar x "${FILE}"
tar JxvfC data.tar.xz out
tar JcvfC "${DEST}" out/usr/share/virtualbox/src/vboxhost .

rm -f control.tar.xz data.tar.xz debian-binary
rm -fR out

0 comments on commit 774b549

Please sign in to comment.