This commit is contained in:
2026-04-25 01:46:08 +05:00
commit 31c4412666
26 changed files with 53 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
+39
View File
@@ -0,0 +1,39 @@
#!/bin/sh
REPO_CONF_NAME="pkg.conf"
cat > pkg.conf << EOF
vbox_ose: {
url: "file://${PWD}",
enabled: yes,
priority: 100
}
EOF
pkg -o REPOS_DIR="$PWD" -o repositories_conf="$REPO_CONF_NAME" install -y virtualbox-ose-additions
RC_CONF="/etc/rc.conf"
LOADER_CONF="/boot/loader.conf"
echo "[*] Configuring VirtualBox guest modules..."
# rc.conf
grep -q '^vboxguest_enable=' "$RC_CONF" || echo 'vboxguest_enable="YES"' >> "$RC_CONF"
grep -q '^vboxservice_enable=' "$RC_CONF" || echo 'vboxservice_enable="YES"' >> "$RC_CONF"
echo "[+] rc.conf updated"
# loader.conf
grep -q '^vboxguest_load=' "$LOADER_CONF" || echo 'vboxguest_load="YES"' >> "$LOADER_CONF"
grep -q '^vboxservice_load=' "$LOADER_CONF" || echo 'vboxservice_load="YES"' >> "$LOADER_CONF"
grep -q '^vboxvideo_load=' "$LOADER_CONF" || echo 'vboxvideo_load="YES"' >> "$LOADER_CONF"
echo "[+] loader.conf updated"
# load now
kldload vboxguest 2>/dev/null
kldload vboxservice 2>/dev/null
kldload vboxvideo 2>/dev/null
echo "[+] Modules loaded (if available)"
echo "[✓] Done"
BIN
View File
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
version = 2;
packing_format = "tzst";
manifests = "packagesite.yaml";
data = "data";
filesite = "filesite.yaml";
manifests_archive = "packagesite";
filesite_archive = "filesite";
+7
View File
@@ -0,0 +1,7 @@
version = 2;
packing_format = "tzst";
manifests = "packagesite.yaml";
data = "data";
filesite = "filesite.yaml";
manifests_archive = "packagesite";
filesite_archive = "filesite";
BIN
View File
Binary file not shown.