Adds SSH server and Axel
Adding fix for Apple keyboard F keys on MBP and MBA
This commit is contained in:
1 parent
ab396a5ef8
commit
391318a839
5 files changed
+41
-22
No files matched your search
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f "/sys/module/hid_apple/parameters/fn_mode" ]; then
|
||||
echo "Found a Mac! Lets see about the keyboard..."
|
||||
if [ ! -f "/etc/modprobe.d/hid_apple.conf"]; then
|
||||
echo "Applying runtime fix"
|
||||
sudo su -c "echo -n 0x02 > /sys/module/hid_apple/parameters/fnmode"
|
||||
echo "Applying Boot fix..."
|
||||
echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
|
||||
update-initramfs -u -k all
|
||||
else
|
||||
echo "Keyboard already fixed."
|
||||
fi
|
||||
else
|
||||
echo "Not a mac."
|
||||
fi
|
||||
Reference in new issue
Block a user