[stgt] [PATCH 2/2] Add conf.d support to default configuration
James Page
james.page at ubuntu.com
Tue Jun 18 15:42:03 CEST 2013
Add /etc/tgt/conf.d/*.conf to standard configuration to support
insertion of configuration without changing the default configuration
file.
Signed-off-by: James Page <james.page at ubuntu.com>
---
conf/Makefile | 1 +
conf/targets.conf | 3 +++
2 files changed, 4 insertions(+)
diff --git a/conf/Makefile b/conf/Makefile
index 9066e56..bff222f 100644
--- a/conf/Makefile
+++ b/conf/Makefile
@@ -15,6 +15,7 @@ install:
for f in $(EXAMPLES) ; do \
install -m 644 examples/$$f $(DESTDIR)$(sysconfdir)/tgt/examples ;\
done
+ install -d $(DESTDIR)$(sysconfdir)/tgt/conf.d
.PHONY: clean
clean:
diff --git a/conf/targets.conf b/conf/targets.conf
index d485b54..1bb4435 100644
--- a/conf/targets.conf
+++ b/conf/targets.conf
@@ -1,2 +1,5 @@
# Empty targets configuration file -- please see the package
# documentation directory for an example.
+#
+# You can drop individual config snippets into /etc/tgt/conf.d
+include /etc/tgt/conf.d/*.conf
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list