Skip to content

Instantly share code, notes, and snippets.

@LorhanSohaky
Last active May 31, 2021 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LorhanSohaky/4d52561132abb8f1477e54cdd3a5adf6 to your computer and use it in GitHub Desktop.
Save LorhanSohaky/4d52561132abb8f1477e54cdd3a5adf6 to your computer and use it in GitHub Desktop.
This is a workaround to make the SSD 2.5" work!
#!/usr/bin/ash
# /etc/initcpio/hooks/load_ssd
run_hook() {
rtcwake -u -m mem --date +1s
}
#!/bin/bash
# /etc/initcpio/install/load_ssd
build() {
add_binary /usr/bin/rtcwake
add_runscript
}

This is a workaround to make the SSD 2.5" work!

  1. Create /etc/initcpio/install/load_ssd and /etc/initcpio/hooks/load_ssd
  2. Edit /etc/mkinitcpio.conf
  3. Run sudo mkinitcpio -P
# /etc/mkinitcpio.conf
# ...
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS="base ... load_ssd"
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment