summaryrefslogtreecommitdiff
path: root/media-gfx/splashutils/files/splashutils-1.5.4.3-fix_rc_var.patch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-12-31 22:37:52 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-12-31 22:37:52 +0200
commitd59f5f405188d93f5c00e21840930d4f1eaf8dd1 (patch)
tree91af19c93a18c173b81109aefffa90fbd41ac230 /media-gfx/splashutils/files/splashutils-1.5.4.3-fix_rc_var.patch
parentea8a28a03b13e387b14c15c0eb3e3f8be42ab0b4 (diff)
Added media gfx,libs,sound
Diffstat (limited to 'media-gfx/splashutils/files/splashutils-1.5.4.3-fix_rc_var.patch')
-rw-r--r--media-gfx/splashutils/files/splashutils-1.5.4.3-fix_rc_var.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/media-gfx/splashutils/files/splashutils-1.5.4.3-fix_rc_var.patch b/media-gfx/splashutils/files/splashutils-1.5.4.3-fix_rc_var.patch
new file mode 100644
index 00000000..3b9e06b4
--- /dev/null
+++ b/media-gfx/splashutils/files/splashutils-1.5.4.3-fix_rc_var.patch
@@ -0,0 +1,55 @@
+diff --git a/gentoo/splash.c b/gentoo/splash.c
+index b6fa774..726315f 100644
+--- a/gentoo/splash.c
++++ b/gentoo/splash.c
+@@ -134,6 +134,19 @@ static void get_list(RC_STRINGLIST *list, const char *file)
+ }
+ }
+
++static void fix_rc_variable(char *s)
++{
++ do {
++ char *t = strstr(s, "\\$");
++
++ if (t) {
++ memmove(t, t+1, strlen(t));
++ } else {
++ break;
++ }
++ } while(1);
++}
++
+ /*
+ * Get splash settings from /etc/conf.d/splash
+ */
+@@ -189,21 +202,27 @@ static int splash_config_gentoo(fbspl_cfg_t *cfg, fbspl_type_t type)
+ switch(type) {
+ case fbspl_reboot:
+ t = rc_config_value(confd, "SPLASH_REBOOT_MESSAGE");
+- if (t)
++ if (t) {
++ fix_rc_variable(t);
+ fbsplash_acc_message_set(t);
++ }
+ break;
+
+ case fbspl_shutdown:
+ t = rc_config_value(confd, "SPLASH_SHUTDOWN_MESSAGE");
+- if (t)
++ if (t) {
++ fix_rc_variable(t);
+ fbsplash_acc_message_set(t);
++ }
+ break;
+
+ case fbspl_bootup:
+ default:
+ t = rc_config_value(confd, "SPLASH_BOOT_MESSAGE");
+- if (t)
++ if (t) {
++ fix_rc_variable(t);
+ fbsplash_acc_message_set(t);
++ }
+ break;
+ }
+