From aa9368eaa3e8b5a11f0243a5b74176a1ce17b29e Mon Sep 17 00:00:00 2001
From: jean-michel <jean-michel@obarun.org>
Date: Mon, 6 May 2019 22:48:24 +0200
Subject: [PATCH] comment out by default

---
 plasma/customizeChroot | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/plasma/customizeChroot b/plasma/customizeChroot
index e0cebbe..2804544 100755
--- a/plasma/customizeChroot
+++ b/plasma/customizeChroot
@@ -49,7 +49,30 @@ create_log_user(){
     out_action "add ${NEWUSER} at log group"
     gpasswd -a "$NEWUSER" log
 }
-custo_once create_log_user 
+custo_once create_log_user
+
+config_vguest(){
+    exec 2>/dev/null
+
+    file="virtualbox-guest-utils"
+
+    if [ "$(pacman -Qe virtualbox-guest-utils | grep -o virtualbox-guest-utils)" = "$file" ] ; then
+    echo "Package "$file" was found."
+
+    out_action "Create 'modules-load.d' directory"
+    mkdir /etc/modules-load.d
+
+    out_action "Create vbox.conf file"
+    cat > /etc/modules-load.d/vbox.conf <<EOF
+vboxsf
+vboxvideo
+EOF
+
+    else
+    echo "package "$file" was not found"
+    fi
+}
+custo_once config_vguest
 
 config_66(){
 
@@ -111,7 +134,7 @@ EOF"
     out_action "Create ${NEWUSER} .xinitrc file"
     su "${NEWUSER}" -c "cat > /home/${NEWUSER}/.xinitrc <<EOF
 ## Uncomment if you use startx command line to launch plasma DE
-exec ck-launch-session startkde
+#exec ck-launch-session startkde
 EOF"
 }
 custo_once config_user
-- 
GitLab