fix(resume): resume using /usr/lib64/suspend
Now resume binary is detected in case it is at /usr/lib64/suspend (like it happens in Gentoo).master
parent
e8c18c9f7f
commit
c459373448
|
@ -50,7 +50,7 @@ install() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Optional uswsusp support
|
# Optional uswsusp support
|
||||||
for _bin in /usr/sbin/resume /usr/lib/suspend/resume /usr/lib/uswsusp/resume; do
|
for _bin in /usr/sbin/resume /usr/lib/suspend/resume /usr/lib64/suspend/resume /usr/lib/uswsusp/resume /usr/lib64/uswsusp/resume; do
|
||||||
[[ -x $dracutsysrootdir${_bin} ]] && {
|
[[ -x $dracutsysrootdir${_bin} ]] && {
|
||||||
inst "${_bin}" /usr/sbin/resume
|
inst "${_bin}" /usr/sbin/resume
|
||||||
[[ $hostonly ]] && [[ -f $dracutsysrootdir/etc/suspend.conf ]] && inst -H /etc/suspend.conf
|
[[ $hostonly ]] && [[ -f $dracutsysrootdir/etc/suspend.conf ]] && inst -H /etc/suspend.conf
|
||||||
|
|
Loading…
Reference in New Issue