From 5c1d8cc2b3f5e5ea84ea620553935aa856e09bdf Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 9 Jul 2025 19:05:37 -0400 Subject: [PATCH] Only run if not already configured --- install/fix-fkeys.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install/fix-fkeys.sh b/install/fix-fkeys.sh index 330ebde..cf3f948 100644 --- a/install/fix-fkeys.sh +++ b/install/fix-fkeys.sh @@ -1,2 +1,4 @@ -echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf -sudo mkinitcpio -P +if [[ ! -f /etc/modprobe.d/hid_apple.conf ]]; do + echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf + sudo mkinitcpio -P +fi