From 871327efb2d816e60d6e351d7ab2db7b9d199481 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 8 Feb 2022 10:44:50 -0800 Subject: [PATCH] compiler_vm: update comments --- applets/compiler_vm/guest/bin/setup-guest | 16 ++++++++++++++++ applets/compiler_vm/guest/bin/start-guest | 10 +++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/applets/compiler_vm/guest/bin/setup-guest b/applets/compiler_vm/guest/bin/setup-guest index 57c37efb..afb23bfd 100755 --- a/applets/compiler_vm/guest/bin/setup-guest +++ b/applets/compiler_vm/guest/bin/setup-guest @@ -1,14 +1,30 @@ +#!/bin/sh + +# File: setup-guest +# +# Purpose: Sets up PBot VM Guest. Copies necessary files to the appropriate +# location, sets up environment variables and various configuration details. + +# SPDX-FileCopyrightText: 2022 Pragmatic Software +# SPDX-License-Identifier: MIT + +# copy executable scripts cp guest/bin/* /usr/local/bin +# language support mkdir -p /usr/local/share/pbot-vm/ cp -r guest/lib/Languages/ /usr/local/share/pbot-vm/ +# C support and GDB integration cp guest/include/prelude.h /usr/include +# require root password for polkit actions cp guest/polkit/* /etc/polkit-1/rules.d/ +# disable networking nmcli networking off +# set environment variables if ! grep -qF "pbot-vm" /root/.bashrc; then echo '# pbot-vm' >> /root/.bashrc echo unset DEBUGINFOD_URLS >> /root/.bashrc diff --git a/applets/compiler_vm/guest/bin/start-guest b/applets/compiler_vm/guest/bin/start-guest index 0cd73b8d..9572efe8 100755 --- a/applets/compiler_vm/guest/bin/start-guest +++ b/applets/compiler_vm/guest/bin/start-guest @@ -1,8 +1,12 @@ #!/usr/bin/env perl -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# File: start-guest +# +# Purpose: PBot VM Guest server. Runs inside PBot VM Guest and processes +# incoming VM commands. + +# SPDX-FileCopyrightText: 2022 Pragmatic Software +# SPDX-License-Identifier: MIT use warnings; use strict;