Fix boot with user suspend and no resume= kernel argument

Mandriva bug https://qa.mandriva.com/show_bug.cgi?id=57924. Check
if dracut got resume= argument before calling /usr/sbin/resume
master
Andrey Borzenkov 2010-03-04 14:00:29 +01:00 committed by Harald Hoyer
parent aab70adc0b
commit 01b8cdffca
1 changed files with 3 additions and 1 deletions

View File

@ -8,4 +8,6 @@ case "$splash" in
;;
esac

/usr/sbin/resume $a_splash "$resume"
if [ -n "$resume" ]; then
/usr/sbin/resume $a_splash "$resume"
fi