Review at  https://gerrit.osmocom.org/6751

fake_trx: add copyright message to clck_gen.py and ctrl_cmd.py

Change-Id: Ia79279dd9e85d131d66d790f1f3fd64fb1914f58
---
M src/target/fake_trx/clck_gen.py
M src/target/fake_trx/ctrl_cmd.py
2 files changed, 20 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/51/6751/1

diff --git a/src/target/fake_trx/clck_gen.py b/src/target/fake_trx/clck_gen.py
index f1c1f98..85dc00e 100755
--- a/src/target/fake_trx/clck_gen.py
+++ b/src/target/fake_trx/clck_gen.py
@@ -29,6 +29,13 @@
 from threading import Timer
 from udp_link import UDPLink
 
+COPYRIGHT = \
+       "Copyright (C) 2017 by Vadim Yanitskiy <axilira...@gmail.com>\n" \
+       "License GPLv2+: GNU GPL version 2 or later " \
+       "<http://gnu.org/licenses/gpl.html>\n" \
+       "This is free software: you are free to change and redistribute it.\n" \
+       "There is NO WARRANTY, to the extent permitted by law.\n"
+
 class CLCKGen:
        # GSM TDMA definitions
        SEC_DELAY_US = 1000 * 1000
@@ -88,6 +95,9 @@
                # Set up signal handlers
                signal.signal(signal.SIGINT, self.sig_handler)
 
+               # Print copyright
+               print(COPYRIGHT)
+
        def run(self):
                self.link = UDPLink("127.0.0.1", 5800, 5700)
                self.clck = CLCKGen([self.link], ind_period = 51)
diff --git a/src/target/fake_trx/ctrl_cmd.py b/src/target/fake_trx/ctrl_cmd.py
index e362408..30b19bd 100755
--- a/src/target/fake_trx/ctrl_cmd.py
+++ b/src/target/fake_trx/ctrl_cmd.py
@@ -28,6 +28,13 @@
 
 from udp_link import UDPLink
 
+COPYRIGHT = \
+       "Copyright (C) 2017 by Vadim Yanitskiy <axilira...@gmail.com>\n" \
+       "License GPLv2+: GNU GPL version 2 or later " \
+       "<http://gnu.org/licenses/gpl.html>\n" \
+       "This is free software: you are free to change and redistribute it.\n" \
+       "There is NO WARRANTY, to the extent permitted by law.\n"
+
 class Application:
        def __init__(self, remote_addr, remote_port, bind_port, fuz = False):
                # Init UDP connection
@@ -39,6 +46,9 @@
                # Set up signal handlers
                signal.signal(signal.SIGINT, self.sig_handler)
 
+               # Print copyright
+               print(COPYRIGHT)
+
        def run(self):
                while True:
                        self.print_prompt()

-- 
To view, visit https://gerrit.osmocom.org/6751
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia79279dd9e85d131d66d790f1f3fd64fb1914f58
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>

Reply via email to