summaryrefslogtreecommitdiff
path: root/src/app/portmaster.clj
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-04-23 12:50:41 -0500
committerDavid Barksdale <amatus@amat.us>2017-04-23 12:50:41 -0500
commitdf496b65b637fefd0a01ff90f9ff80cbdc7e9b7c (patch)
tree60ad6ca2b3a272aa2f1d77e4eee6e007b037a51b /src/app/portmaster.clj
parent2c83ecd5c8bc959150f113a62be66b63b605e851 (diff)
Portmaster control and temp display
Diffstat (limited to 'src/app/portmaster.clj')
-rw-r--r--src/app/portmaster.clj4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/portmaster.clj b/src/app/portmaster.clj
index 1d34c88..3c25176 100644
--- a/src/app/portmaster.clj
+++ b/src/app/portmaster.clj
@@ -83,6 +83,10 @@
[port]
(do-command (str "off " port)))
+(defn set-name
+ [port name]
+ (do-command (str "name " port " " name)))
+
(defn init
[port-name username password]
(let [socat (.. (ProcessBuilder.