5c5a608f6c
note that with USB UPS, you may have to allow permissions on further ugen subdevices (e.g. ugen0.01 as well as ugen0.00).
22 lines
570 B
Plaintext
22 lines
570 B
Plaintext
$OpenBSD: patch-common_common_c,v 1.5 2010/03/31 22:11:11 sthen Exp $
|
|
--- common/common.c.orig Thu Feb 11 21:43:12 2010
|
|
+++ common/common.c Sat Mar 20 23:18:12 2010
|
|
@@ -319,6 +319,17 @@ const char * confpath(void)
|
|
return path;
|
|
}
|
|
|
|
+/* return a config path for the CGIs so they can be kept seperate */
|
|
+const char * cgiconfpath(void)
|
|
+{
|
|
+ const char * path;
|
|
+
|
|
+ if ((path = getenv("NUT_CGICONFPATH")) == NULL)
|
|
+ path = CGICONFPATH;
|
|
+
|
|
+ return path;
|
|
+}
|
|
+
|
|
/* Return the default path for the directory containing state files */
|
|
const char * dflt_statepath(void)
|
|
{
|