From 2c77e351a00215e72b6519c5d198b8d3bf4b69db Mon Sep 17 00:00:00 2001 From: simono41 Date: Sun, 4 Mar 2018 18:50:24 +0100 Subject: [PATCH] fix --- arch-install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch-install b/arch-install index 97c82cd..804cdc9 100755 --- a/arch-install +++ b/arch-install @@ -68,11 +68,10 @@ function secureumount() { umount ${mountpoint}/boot umount ${mountpoint} fi - if cat /proc/mounts | grep /dev/mapper/luks0 > /dev/null; then - cryptsetup remove /dev/mapper/luks0 - fi fi - + if cat /proc/mounts | grep /dev/mapper/luks0 > /dev/null; then + cryptsetup remove /dev/mapper/luks0 + fi } @@ -987,6 +986,9 @@ fi if [ "${x11vnc}" == "y" ]; then echo "Bitte geben sie ein Passwort für das VNC-Protokoll ein!" arch-chroot ${mountpoint} x11vnc -storepasswd /etc/x11vnc.pass + arch-chroot ${mountpoint} systemctl enable x11vnc.service +else + arch-chroot ${mountpoint} systemctl disable x11vnc.service fi if [ "${update}" != "n" ] && [ "${offline}" == "n" ]; then