suspend-default-splash.diff 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Index: resume.c
  2. ===================================================================
  3. --- resume.c.orig
  4. +++ resume.c
  5. @@ -421,10 +421,10 @@ int main(int argc, char *argv[])
  6. if (error)
  7. return -error;
  8. - if (splash_param != 'y' && splash_param != 'Y')
  9. - splash_param = 0;
  10. - else
  11. + if (splash_param != 'n' && splash_param != 'N')
  12. splash_param = SPL_RESUME;
  13. + else
  14. + splash_param = 0;
  15. get_page_and_buffer_sizes();
  16. Index: suspend.c
  17. ===================================================================
  18. --- suspend.c.orig
  19. +++ suspend.c
  20. @@ -1782,10 +1782,10 @@ int main(int argc, char *argv[])
  21. if (do_encrypt != 'y' && do_encrypt != 'Y')
  22. do_encrypt = 0;
  23. #endif
  24. - if (splash_param != 'y' && splash_param != 'Y')
  25. - splash_param = 0;
  26. - else
  27. + if (splash_param != 'n' && splash_param != 'N')
  28. splash_param = SPL_SUSPEND;
  29. + else
  30. + splash_param = 0;
  31. if (early_writeout != 'n' && early_writeout != 'N')
  32. early_writeout = 1;
  33. Index: conf/suspend.conf
  34. ===================================================================
  35. --- conf/suspend.conf.orig
  36. +++ conf/suspend.conf
  37. @@ -40,7 +40,7 @@
  38. ## will most of the time speed up overall writing time (default y)
  39. #early writeout = n
  40. #
  41. -## use splash picture? (default n)
  42. +## use splash picture? (default y)
  43. #splash = y
  44. #
  45. ## shutdown method: