From f73f7da85ca913e139ed60e8448cba3b4d7c618e Mon Sep 17 00:00:00 2001 From: Nelson Truran Date: Wed, 28 Jul 2021 10:34:30 -0700 Subject: [PATCH] Double equals doesn't work between single brackets the POSIX standard doesn't required `==` to work between single brackets. This change should fix the touchbar failing to reinitialize after suspend. --- files/suspend/rmmod_tb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/suspend/rmmod_tb.sh b/files/suspend/rmmod_tb.sh index 21c3234..30c6ead 100755 --- a/files/suspend/rmmod_tb.sh +++ b/files/suspend/rmmod_tb.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ "${1}" == "pre" ]; then +if [ "${1}" = "pre" ]; then modprobe -r apple_ib_tb -elif [ "${1}" == "post" ]; then +elif [ "${1}" = "post" ]; then modprobe apple_ib_tb fi