Soft Patch Panel
 help / color / Atom feed
* [spp] [PATCH] bin: make template config as default
@ 2019-05-31  8:52 ogawa.yasufumi
  0 siblings, 0 replies; only message in thread
From: ogawa.yasufumi @ 2019-05-31  8:52 UTC (permalink / raw)
  To: spp, ferruh.yigit, ogawa.yasufumi

From: Yasufumi Ogawa <>

Config file of startup script `bin/` is under management of git,
but it is not convenient for developers if this file is changed and
asked to `git add` even if subtle changes. This update is to add
template config under the management of git and to use customized
config which is not included under git.

The startup script expects to find customized `bin/`, or create
it by copying template `bin/sample/` if it does not exist.

Signed-off-by: Yasufumi Ogawa <>
 .gitignore                       |  1 +
 bin/{ => sample/} |  0
 bin/                     | 15 +++++++++++++--
 3 files changed, 14 insertions(+), 2 deletions(-)
 rename bin/{ => sample/} (100%)

diff --git a/.gitignore b/.gitignore
index b31ab54..34c2ea8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
diff --git a/bin/ b/bin/sample/
similarity index 100%
rename from bin/
rename to bin/sample/
diff --git a/bin/ b/bin/
index 6a6f304..9bc1ff0 100755
--- a/bin/
+++ b/bin/
@@ -8,10 +8,21 @@
 # Activate for debugging
 #set -x
-SPP_DIR=$(cd $(dirname $0); pwd)/..
+WORK_DIR=$(cd $(dirname $0); pwd)
+if [ ! -f ${CONFIG} ]; then
+    echo "Creating config file ..."
+    echo "Edit '${CONFIG}' and run this script again!"
+    exit
 # import vars and functions
-. ${SPP_DIR}/bin/
+. ${CONFIG}
 echo "Start spp-ctl"
 python3 ${SPP_DIR}/src/spp-ctl/spp-ctl -b ${SPP_HOST_IP} \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-31  8:52 [spp] [PATCH] bin: make template config as default ogawa.yasufumi

Soft Patch Panel

Archives are clonable:
	git clone --mirror spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ \
	public-inbox-index spp

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox