[spp] [PATCH v4 06/14] spp-ctl: add entry point

oda at valinux.co.jp oda at valinux.co.jp
Fri Oct 5 05:57:49 CEST 2018


From: Itsuro Oda <oda at valinux.co.jp>

Add `spp-ctl` launched in a terminal as the entry point. Spp-ctl is
expected to be launched from Python3.

  $ python3 /path/to/spp/src/spp-ctl/spp-ctl

Signed-off-by: Itsuro Oda <oda at valinux.co.jp>
---
 src/spp-ctl/spp-ctl | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 src/spp-ctl/spp-ctl

diff --git a/src/spp-ctl/spp-ctl b/src/spp-ctl/spp-ctl
new file mode 100644
index 0000000..645611b
--- /dev/null
+++ b/src/spp-ctl/spp-ctl
@@ -0,0 +1,11 @@
+#!/usr/bin/python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Nippon Telegraph and Telephone Corporation
+
+import sys
+
+from spp_ctl import main
+
+
+if __name__ == "__main__":
+    sys.exit(main())
-- 
2.17.1



More information about the spp mailing list