From ec119f904ba1e2ad1faca75b53802ebd91bde136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= Date: Fri, 2 Mar 2018 10:07:46 +0100 Subject: [PATCH] use --quiet rather than redirecting to /dev/null --- ubuntu/18.04/install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ubuntu/18.04/install.sh b/ubuntu/18.04/install.sh index 4056d95..47491ff 100644 --- a/ubuntu/18.04/install.sh +++ b/ubuntu/18.04/install.sh @@ -18,6 +18,7 @@ fi apt update && apt upgrade -y + if [ -f /var/run/reboot-required ]; then echo "A reboot is required in order to proceed with the install." >&2 echo "Please reboot and re-run this script to finish the install." >&2 @@ -56,14 +57,15 @@ rmmod vsock modprobe hv_sock # Blacklist the vmw module -cat /etc/modprobe.d/blacklist.conf | grep vmw_vsock_vmci_transport > /dev/null +cat /etc/modprobe.d/blacklist.conf | grep vmw_vsock_vmci_transport --quiet if [ "$?" == "1" ]; then bash -c 'echo "blacklist vmw_vsock_vmci_transport" >> /etc/modprobe.d/blacklist.conf < /dev/null + +#Ensure hv_sock gets loaded +cat /etc/modules | grep hv_sock --quiet if [ "$?" == "1" ]; then bash -c 'echo "hv_sock" >> /etc/modules <