make LCDd's exit message configurable

This commit is contained in:
marschap
2007-04-02 15:32:14 +00:00
parent 4839321569
commit a63ae89eb7
6 changed files with 67 additions and 60 deletions
-2
View File
@@ -27,8 +27,6 @@ one there, so I'll keep thinking on it for now.
just to not display a useless menu.
Let the server menu name be configurable in the config file with the
[menu]menuentryname="Menu Name" option in LCDd.conf.
* setting the goodbye msg - which we set to "shutting down", instead of
"Thanks for using lcdproc+linux"
3. SEG - adds the ability to get a stack trace for the LCDd daemon. I
didn't actually catch a useful trace w/ it, but might be a nice
-19
View File
@@ -241,22 +241,3 @@ diff -ruNp lcdproc-0.5.1-orig/server/serverscreens.c lcdproc-0.5.1-working/serve
} else {
w->text[0] = 0;
}
@@ -157,6 +173,18 @@ goodbye_screen ()
char *l16 = " LCDproc! ";
#endif
+#ifndef OPT // disable config goobye
+ char * goodbye_string;
+
+ if ( (goodbye_string = strdup(config_get_string("server", "goodbye", 0, "")))) {
+ t20=t16=goodbye_string;
+ if (strlen(goodbye_string) > 16 )
+ l16 = goodbye_string + 16;
+ if (strlen(goodbye_string) > 20 )
+ l20 = goodbye_string + 20;
+ }
+#endif //OPT
+
if( !display_props )
return 0;