Created
March 20, 2016 11:24
-
-
Save zurfyx/ba17b7c79d288a79ff07 to your computer and use it in GitHub Desktop.
K70 RGB keyboard long boot time fix - https://github.com/ccMSC/ckb/issues/234
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$EUID" -ne 0 ]; then | |
echo "Run me with sudo" | |
exit | |
fi | |
TARGET_KEY="GRUB_CMDLINE_LINUX_DEFAULT" | |
REPLACEMENT_VALUE="\"elevator=deadline splash quiet usbhid.quirks=0x1b1c:0x1b13:0x20000000\"" | |
CONFIG_FILE="/etc/default/grub" | |
sed -i "s/\($TARGET_KEY *= *\).*/\1$REPLACEMENT_VALUE/" $CONFIG_FILE | |
update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment