Browse Source

resume: only install hostonly files, if in hostonly mode

master
Harald Hoyer 11 years ago
parent
commit
1ea5879085
  1. 8
      modules.d/95resume/module-setup.sh

8
modules.d/95resume/module-setup.sh

@ -30,15 +30,17 @@ cmdline() { @@ -30,15 +30,17 @@ cmdline() {
install() {
local _bin

cmdline >> "${initdir}/etc/cmdline.d/95resume.conf"
echo >> "${initdir}/etc/cmdline.d/95resume.conf"
if [[ $hostonly_cmdline == "yes" ]]; then
cmdline >> "${initdir}/etc/cmdline.d/95resume.conf"
echo >> "${initdir}/etc/cmdline.d/95resume.conf"
fi

# Optional uswsusp support
for _bin in /usr/sbin/resume /usr/lib/suspend/resume /usr/lib/uswsusp/resume
do
[[ -x "${_bin}" ]] && {
inst "${_bin}" /usr/sbin/resume
[[ -f /etc/suspend.conf ]] && inst /etc/suspend.conf
[[ $hostonly ]] && [[ -f /etc/suspend.conf ]] && inst -H /etc/suspend.conf
break
}
done

Loading…
Cancel
Save