Skip to content

Instantly share code, notes, and snippets.

@zurfyx
Created March 20, 2016 11:24
Show Gist options
  • Save zurfyx/ba17b7c79d288a79ff07 to your computer and use it in GitHub Desktop.
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
#!/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