From 9a645a7ab52264c870a6a25d75feeeddd539cc1f Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 12 Feb 2022 00:07:00 +0100 Subject: reorganize scripts --- scripts/logenv.sh | 7 ------- scripts/runvm.sh | 20 ++++++++++++++++++++ scripts/try.sh | 16 ---------------- 3 files changed, 20 insertions(+), 23 deletions(-) delete mode 100644 scripts/logenv.sh create mode 100644 scripts/runvm.sh delete mode 100755 scripts/try.sh (limited to 'scripts') diff --git a/scripts/logenv.sh b/scripts/logenv.sh deleted file mode 100644 index e253426..0000000 --- a/scripts/logenv.sh +++ /dev/null @@ -1,7 +0,0 @@ -export VBOX_LOG_DEST="nofile stderr" -export VBOX_LOG_FLAGS="thread time" -export VBOX_LOG="+dev_sb16.e.l.f.l3.l5.l7.l9" -export VBOX_RELEASE_LOG_DEST="nofile stderr" -export VBOX_RELEASE_LOG="-all +dev_sb16.e.l.f" - -#export VBOX_LOG="" diff --git a/scripts/runvm.sh b/scripts/runvm.sh new file mode 100644 index 0000000..c7471ea --- /dev/null +++ b/scripts/runvm.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +vm="$1" + +if [[ -z "$vm" ]]; then + echo "Usage: $0 " + exit 1 +fi + +export VBOX_LOG_DEST="nofile stderr" +export VBOX_LOG_FLAGS="thread time" +export VBOX_LOG="+dev_sb16.e.l.f.l3.l5.l7.l9" +export VBOX_RELEASE_LOG_DEST="nofile stderr" +export VBOX_RELEASE_LOG="-all +dev_sb16.e.l.f" + +# --debug + +exec /usr/lib/virtualbox/VirtualBoxVM --startvm "$vm" diff --git a/scripts/try.sh b/scripts/try.sh deleted file mode 100755 index da5c31e..0000000 --- a/scripts/try.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -set -e - -vm="$1" - -if [[ -z "$vm" ]]; then - echo "Usage: $0 " - exit 1 -fi - -source scripts/logenv.sh - -# --debug - -exec /usr/lib/virtualbox/VirtualBoxVM --startvm "$vm" -- cgit v1.2.3