01-plymouth-restore-suspend.patch 1.4 KB

1234567891011121314151617181920212223242526272829
  1. diff -Nuar a/src/libply-splash-core/ply-boot-splash-plugin.h b/src/libply-splash-core/ply-boot-splash-plugin.h
  2. --- a/src/libply-splash-core/ply-boot-splash-plugin.h 2020-06-15 17:16:47.000000000 +0300
  3. +++ b/src/libply-splash-core/ply-boot-splash-plugin.h 2021-01-25 13:40:38.576859689 +0300
  4. @@ -38,6 +38,8 @@
  5. {
  6. PLY_BOOT_SPLASH_MODE_BOOT_UP,
  7. PLY_BOOT_SPLASH_MODE_SHUTDOWN,
  8. + PLY_BOOT_SPLASH_MODE_SUSPEND,
  9. + PLY_BOOT_SPLASH_MODE_RESUME,
  10. PLY_BOOT_SPLASH_MODE_REBOOT,
  11. PLY_BOOT_SPLASH_MODE_UPDATES,
  12. PLY_BOOT_SPLASH_MODE_SYSTEM_UPGRADE,
  13. diff -Nuar a/src/plugins/splash/script/script-lib-plymouth.c b/src/plugins/splash/script/script-lib-plymouth.c
  14. --- a/src/plugins/splash/script/script-lib-plymouth.c 2020-06-15 17:16:47.000000000 +0300
  15. +++ b/src/plugins/splash/script/script-lib-plymouth.c 2021-01-25 13:43:12.694848568 +0300
  16. @@ -70,6 +70,12 @@
  17. case PLY_BOOT_SPLASH_MODE_SHUTDOWN:
  18. obj = script_obj_new_string ("shutdown");
  19. break;
  20. + case PLY_BOOT_SPLASH_MODE_SUSPEND:
  21. + obj = script_obj_new_string ("suspend");
  22. + break;
  23. + case PLY_BOOT_SPLASH_MODE_RESUME:
  24. + obj = script_obj_new_string ("resume");
  25. + break;
  26. case PLY_BOOT_SPLASH_MODE_REBOOT:
  27. obj = script_obj_new_string ("reboot");
  28. break;