aboutsummaryrefslogtreecommitdiff
path: root/system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh')
-rw-r--r--system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh b/system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh
index 738df1deff521..251e24f1e2c1f 100644
--- a/system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh
+++ b/system/virtualbox-kernel-addons/virtualbox-kernel-addons-mksrctarball.sh
@@ -9,13 +9,13 @@
set -e
PRGNAM=virtualbox-kernel-addons
-VERSION=$(VBoxControl --help 2>/dev/null | grep OSE | cut -d " " -f 9 | cut -d "_" -f 1)
+VERSION=$(VBoxControl --help 2>/dev/null | grep OSE | rev | cut -d " " -f 1 | rev | cut -d "_" -f 1)
mkdir $PRGNAM
echo "--> Copying sourcecode from /usr/src"
cp -rf /usr/src/vboxguest-$VERSION $PRGNAM/vboxguest
-cp -rf /usr/src/vboxvfs-$VERSION $PRGNAM/vboxvfs
+cp -rf /usr/src/vboxsf-$VERSION $PRGNAM/vboxsf
cp -rf /usr/src/vboxvideo-$VERSION $PRGNAM/vboxvideo
echo "--> Making the sourcecode tarball: $PRGNAM-src-$VERSION.tar.xz"