make LCDd's exit message configurable
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user