summaryrefslogtreecommitdiff
path: root/patchroot.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-28 20:08:35 -0400
committerAndrew Cady <d@jerkface.net>2016-04-28 20:08:35 -0400
commit729f74f9afb2b24985acae74eaff6d3f86c23a02 (patch)
treefee9c6aef774e86031ae285ca2f7e3d12b61a9a6 /patchroot.sh
parent6706a919083d1bb815ebddca08b2f2755bcd918d (diff)
fix apple function keys
Diffstat (limited to 'patchroot.sh')
-rwxr-xr-xpatchroot.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/patchroot.sh b/patchroot.sh
index aa18b8f..738beac 100755
--- a/patchroot.sh
+++ b/patchroot.sh
@@ -30,6 +30,11 @@ else
30 default_sources_list > /etc/apt/sources.list 30 default_sources_list > /etc/apt/sources.list
31fi 31fi
32 32
33if [ -e /sys/module/hid_apple/parameters/fnmode ]; then
34 echo 2 > /sys/module/hid_apple/parameters/fnmode
35fi
36echo options hid_apple fnmode=2 > /etc/modprobe.d/apple.conf
37
33if [ "$(ifquery -a --list)" = lo ]; then 38if [ "$(ifquery -a --list)" = lo ]; then
34 # No configured interfaces. Do something! 39 # No configured interfaces. Do something!
35 dhclient $(network_devs) 40 dhclient $(network_devs)