summaryrefslogtreecommitdiff
path: root/net-misc/rwbs/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/rwbs/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/rwbs/files')
-rw-r--r--net-misc/rwbs/files/rwbs.conf21
-rw-r--r--net-misc/rwbs/files/rwbs.rc20
2 files changed, 41 insertions, 0 deletions
diff --git a/net-misc/rwbs/files/rwbs.conf b/net-misc/rwbs/files/rwbs.conf
new file mode 100644
index 000000000000..09541e48f14c
--- /dev/null
+++ b/net-misc/rwbs/files/rwbs.conf
@@ -0,0 +1,21 @@
+# Roger Wilco base station configuration
+#
+# $ rwbs --help reads:
+# usage: ./rwbs [-b(ackwardcompat)] [-t(est)] [-s(tatic)] [-p <passwd>] [-u <udpport>] [-x <connectspeed>] [$
+# connectspeed is an integer measuring the allocated broadcast
+# capacity for the channel host. The recommended value is 1.
+# Higher values will cause the RWBS to use its additional broadcast capacity
+# to help relay transmissions, at the expense of scalability.
+# the b(ackwardcompat) option tells RWBS to appear as a "user" on the
+# channel. Mark I users will prefer this, but not Mark Ia users.
+# The s(tatic) option indicates that a client asking to join a
+# non-existent named channel should be turned away with an error.
+# rather than being hosted on a dynamically-created channel.
+# hostname is what your station's name will be in the Roger Wilco Channel Tab.
+# For instance, if you used -n "Clan Hurt", Roger Wilco users will see
+# an entry in the Channel window named "Clan Hurt Base"
+# If the -t(est) flag is used, the base station echoes transmissions
+# when there is just one other party on the channel.
+
+# Specify whatever options you want on this line
+RWBS_OPTS='-n "Gentoo Linux"'
diff --git a/net-misc/rwbs/files/rwbs.rc b/net-misc/rwbs/files/rwbs.rc
new file mode 100644
index 000000000000..280e2d258a24
--- /dev/null
+++ b/net-misc/rwbs/files/rwbs.rc
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting Roger Wilco base station"
+ start-stop-daemon --start --quiet --exec /opt/bin/rwbs -b \
+ -- \${RWBS_OPTS} >>/var/log/rwbs 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Roger Wilco base station"
+ start-stop-daemon --stop --quiet --exec /opt/bin/rwbs > /dev/null 2>&1
+ eend $?
+}