smart gateway: install default speed configuration file
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 10 May 2012 09:10:07 +0000 (11:10 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 10 May 2012 09:10:31 +0000 (11:10 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Makefile
files/olsrd.sgw.speed.conf [new file with mode: 0644]

index 87f1727..f40d4d2 100644 (file)
--- 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 (file)
index 0000000..ae795d8
--- /dev/null
@@ -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