1 | #!/bin/bash
|
---|
2 | # $Id: load.sh 98103 2023-01-17 14:15:46Z vboxsync $
|
---|
3 | ## @file
|
---|
4 | # Driver load script.
|
---|
5 | #
|
---|
6 |
|
---|
7 | #
|
---|
8 | # Copyright (C) 2012-2023 Oracle and/or its affiliates.
|
---|
9 | #
|
---|
10 | # This file is part of VirtualBox base platform packages, as
|
---|
11 | # available from https://www.virtualbox.org.
|
---|
12 | #
|
---|
13 | # This program is free software; you can redistribute it and/or
|
---|
14 | # modify it under the terms of the GNU General Public License
|
---|
15 | # as published by the Free Software Foundation, in version 3 of the
|
---|
16 | # License.
|
---|
17 | #
|
---|
18 | # This program is distributed in the hope that it will be useful, but
|
---|
19 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
21 | # General Public License for more details.
|
---|
22 | #
|
---|
23 | # You should have received a copy of the GNU General Public License
|
---|
24 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
25 | #
|
---|
26 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
27 | #
|
---|
28 |
|
---|
29 | outdir=out/haiku.x86/debug/bin/additions
|
---|
30 | instdir=/boot/apps/VBoxAdditions
|
---|
31 |
|
---|
32 |
|
---|
33 | # vboxguest
|
---|
34 | mkdir -p ~/config/add-ons/kernel/generic/
|
---|
35 | cp $outdir/vboxguest ~/config/add-ons/kernel/generic/
|
---|
36 |
|
---|
37 | # vboxdev
|
---|
38 | mkdir -p ~/config/add-ons/kernel/drivers/dev/misc/
|
---|
39 | cp $outdir/vboxdev ~/config/add-ons/kernel/drivers/bin/
|
---|
40 | ln -sf ../../bin/vboxdev ~/config/add-ons/kernel/drivers/dev/misc
|
---|
41 |
|
---|
42 | # VBoxMouse
|
---|
43 | cp $outdir/VBoxMouse ~/config/add-ons/input_server/devices/
|
---|
44 | cp $outdir/VBoxMouseFilter ~/config/add-ons/input_server/filters/
|
---|
45 |
|
---|
46 | # Services
|
---|
47 | mkdir -p $instdir
|
---|
48 | cp $outdir/VBoxService $instdir/
|
---|
49 | cp $outdir/VBoxTray $instdir/
|
---|
50 | cp $outdir/VBoxControl $instdir/
|
---|
51 | ln -sf $instdir/VBoxService ~/config/boot/launch
|
---|
52 |
|
---|