mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-27 00:55:34 +03:00
20abd91484
All modules now live in a subdirectory /modules.d. Each module is self-contained -- it should contain everything that it will install on the initrd. All modules must include a script named install, which will be sourced by dracut. This script should do the actual file installation using inst methods. The moddir variable will point to the full path to the module dracut is currently working on. As usual, this patch series applies on top of my previous patch series, and is available as normalize-modules from http://git.fnordovax.org/dracut.
8 lines
250 B
Bash
Executable File
8 lines
250 B
Bash
Executable File
#!/bin/sh
|
|
resume=$(getarg resume=) && ! getarg noresume && [ -b "$resume" ] && {
|
|
# parsing the output of ls is Bad, but until there is a better way...
|
|
ls -lH "$resume" | (
|
|
read x x x x maj min x;
|
|
echo "${maj%,}:$min"> /sys/power/resume)
|
|
}
|