[Olsr-dev] [PATCH RFC v1 3/4] smart gateway: install default speed configuration file

Ferry Huberts (spam-protected)
Thu May 10 17:56:43 CEST 2012


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 Makefile                   |    3 ++-
 files/olsrd.sgw.speed.conf |   14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)
 create mode 100644 files/olsrd.sgw.speed.conf

diff --git a/Makefile b/Makefile
index 780a35c..3ec8dea 100644
--- a/Makefile
+++ b/Makefile
@@ -129,6 +129,7 @@ install_olsrd:	install_bin
 		@echo ==========================================================
 		mkdir -p $(ETCDIR)
 		-cp -i files/olsrd.conf.default.lq $(CFGFILE)
+		-cp -i files/olsrd.sgw.speed.conf $(ETCDIR)/
 		@echo -------------------------------------------
 		@echo Edit $(CFGFILE) before running olsrd!!
 		@echo -------------------------------------------
@@ -147,7 +148,7 @@ ifneq ($(MANDIR),)
 		rm -f $(MANDIR)/man8/$(EXENAME).8.gz
 		rmdir -p --ignore-fail-on-non-empty $(MANDIR)/man8/
 endif
-		rm -f $(CFGFILE)
+		rm -f $(CFGFILE) $(ETCDIR)/olsrd.sgw.speed.conf
 		rmdir -p --ignore-fail-on-non-empty $(ETCDIR)
 
 tags:
diff --git a/files/olsrd.sgw.speed.conf b/files/olsrd.sgw.speed.conf
new file mode 100644
index 0000000..ae795d8
--- /dev/null
+++ b/files/olsrd.sgw.speed.conf
@@ -0,0 +1,14 @@
+#
+# OLSrd Smart Gateway uplink speed configuration file
+#
+
+
+#
+# Upstream speed in kilobit/s
+# Default: 128
+#upstream=128
+
+#
+# Downstream speed in kilobit/s
+# Default: 1024
+#downstream=1024
-- 
1.7.7.6





More information about the Olsr-dev mailing list