src/plugins/splash/script/script-lib-plymouth.c | 6 ++++++
2 files changed, 8 insertions(+)
-diff --git a/src/libply-splash-core/ply-boot-splash-plugin.h b/src/libply-splash-core/ply-boot-splash-plugin.h
-index 2d73d66..1a67526 100644
---- a/src/libply-splash-core/ply-boot-splash-plugin.h
-+++ b/src/libply-splash-core/ply-boot-splash-plugin.h
-@@ -38,6 +38,8 @@ typedef enum
- {
- PLY_BOOT_SPLASH_MODE_BOOT_UP,
- PLY_BOOT_SPLASH_MODE_SHUTDOWN,
-+ PLY_BOOT_SPLASH_MODE_SUSPEND,
-+ PLY_BOOT_SPLASH_MODE_RESUME,
- PLY_BOOT_SPLASH_MODE_UPDATES,
- PLY_BOOT_SPLASH_MODE_INVALID
- } ply_boot_splash_mode_t;
-diff --git a/src/plugins/splash/script/script-lib-plymouth.c b/src/plugins/splash/script/script-lib-plymouth.c
-index 5c648a6..eb7791e 100644
---- a/src/plugins/splash/script/script-lib-plymouth.c
-+++ b/src/plugins/splash/script/script-lib-plymouth.c
-@@ -61,6 +61,12 @@ static script_return_t plymouth_get_mode (script_state_t *state,
- case PLY_BOOT_SPLASH_MODE_SHUTDOWN:
- obj = script_obj_new_string ("shutdown");
- break;
-+ case PLY_BOOT_SPLASH_MODE_SUSPEND:
-+ obj = script_obj_new_string ("suspend");
-+ break;
-+ case PLY_BOOT_SPLASH_MODE_RESUME:
-+ obj = script_obj_new_string ("resume");
-+ break;
- case PLY_BOOT_SPLASH_MODE_UPDATES:
- obj = script_obj_new_string ("updates");
- break;
---
-1.7.10.4
-
+--- plymouth-0.9.2/src/libply-splash-core/ply-boot-splash-plugin.h.orig 2015-05-24 21:36:57.996946648 +0200
++++ plymouth-0.9.2/src/libply-splash-core/ply-boot-splash-plugin.h 2015-05-24 21:40:09.206938626 +0200
+@@ -38,6 +38,8 @@
+ PLY_BOOT_SPLASH_MODE_BOOT_UP,
+ PLY_BOOT_SPLASH_MODE_SHUTDOWN,
+ PLY_BOOT_SPLASH_MODE_REBOOT,
++ PLY_BOOT_SPLASH_MODE_SUSPEND,
++ PLY_BOOT_SPLASH_MODE_RESUME,
+ PLY_BOOT_SPLASH_MODE_UPDATES,
+ PLY_BOOT_SPLASH_MODE_SYSTEM_UPGRADE,
+ PLY_BOOT_SPLASH_MODE_FIRMWARE_UPGRADE,
+--- plymouth-22.02.122/src/plugins/splash/script/script-lib-plymouth.c.orig 2022-08-27 20:59:50.679508419 +0200
++++ plymouth-22.02.122/src/plugins/splash/script/script-lib-plymouth.c 2022-08-27 21:01:12.459065382 +0200
+@@ -73,6 +73,12 @@ static script_return_t plymouth_get_mode
+ case PLY_BOOT_SPLASH_MODE_REBOOT:
+ obj = script_obj_new_string ("reboot");
+ break;
++ case PLY_BOOT_SPLASH_MODE_SUSPEND:
++ obj = script_obj_new_string ("suspend");
++ break;
++ case PLY_BOOT_SPLASH_MODE_RESUME:
++ obj = script_obj_new_string ("resume");
++ break;
+ case PLY_BOOT_SPLASH_MODE_UPDATES:
+ obj = script_obj_new_string ("updates");
+ break;