From c8bad6ff58f7075fa2512e569acb60d7d3fa0a55 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Mon, 2 Nov 2015 08:13:11 +0000
Subject: [PATCH] Beginning of SIP user commands

---
 man/freedombone-addsipuser.1.gz | Bin 0 -> 455 bytes
 man/freedombone-rmsipuser.1.gz  | Bin 0 -> 430 bytes
 src/freedombone-addsipuser      |  32 ++++++++++++++++++++++++++++++++
 src/freedombone-adduser         |  30 ++++++++++++++++++++++++++++++
 src/freedombone-rmsipuser       |  32 ++++++++++++++++++++++++++++++++
 5 files changed, 94 insertions(+)
 create mode 100644 man/freedombone-addsipuser.1.gz
 create mode 100644 man/freedombone-rmsipuser.1.gz
 create mode 100755 src/freedombone-addsipuser
 create mode 100755 src/freedombone-rmsipuser

diff --git a/man/freedombone-addsipuser.1.gz b/man/freedombone-addsipuser.1.gz
new file mode 100644
index 0000000000000000000000000000000000000000..a14e8558ec5cd746871a8aeaad5c74ba19427569
GIT binary patch
literal 455
zcmV;&0XY62iwFQ^8aGw|1C3JKirX*{efL)kerXG}y-6u-Ln*blZW5Y{iJdNOx(|{)
ziN!`2blJ<_*A8B`!44GkAf1^xbIxeOVg`GSSV>N$z<^YhVagfQFarN-3@iBn<Ezm}
zAN=Nge@%sLlk~>Gk_bnRzUPJc4E$BROnvVH<DUTH<^=@uc?PO(Sxx~f!PW@o*;wQq
zQ~qnU&hmMFku7krYcGOuyn_H?hffxTVN!r_oT6?}1v^EId6c@k>xjRl`ORjY74!AV
z_x?jq*wrQ5X(MKXN@@$#9hy4pg$dNwDl>_q1GBZGVJUe;iK%rN{UbbL#yB)D-qIA}
zMZP}s_IC8{{n=lXM~1?dsBJIQi~%`e$DzQHnZbf5uGEDdeOQV;JM>_75K{MrDvf<+
zja=G(u10~6!JsM4hdpUNXi4)yM+VCt=EMc%Ekn>Q$k4#rRT${n!QEHJ+hVrf_+BC@
zETy%YaQI9m{i-FEmX#)S_o0<vypU=yn`Y58n@%8&KV6U057#F&VV0vY<bV@Mmch8Z
xbu~{OepY)us~7TjQ5kh}{{vYe^%hOOI91&uot$>BS-taK-d_|{NyOCy004FB-P-^F

literal 0
HcmV?d00001

diff --git a/man/freedombone-rmsipuser.1.gz b/man/freedombone-rmsipuser.1.gz
new file mode 100644
index 0000000000000000000000000000000000000000..98508e9a274b14f330133108ddf80234b055ce31
GIT binary patch
literal 430
zcmV;f0a5-RiwFQw8aGw|1C3H!i<?joe)m@lzO;o#Hz|ePP)g(0CZV}VG+laoI7cUX
z*c^|{9JB4eUk#QvXrLhH;hXs`Gme)m;6R9((bAMSBF(C*841SV-b`R)PB6I{zjeWF
zzE6KUVc#^pU|5T?7Dv}{ym$fbX0{GpXISvZ2zIE=2^j>$%LuBX)j8J=WHi_Ufq%0_
z-KoW2H`^#)#@7_Tw{Iyl{_F@J!}xx;jFRPc<2wIq=5^#?KaX2hWypf8^M+|1FMz_@
zil@GxD_hjkOO5uW;DS>BpH#kLu95!)4?~!(;_XH7m*ZEjFLs?C6_z$dvb~bXGSosH
zhYCl<gM?qYs;+qSVN)Jd-h)+M8tMnF2>Z&^tk?E?2}^t$4Gu+mcqY<=Bat4Qh%xP9
zb$KOut1zkr^U%WDV;FGl;O<w>_Q_(qbDh9QSQ~3eXm}@${6Iz;t5WvrN6(t~jwi{9
z=8->-=2Hk~cej)9&FvWtl-0;Aa-2f29!=7Ry3oPtOLm||u`=J1jH~;{&!`eZd*pa^
YW<8*so^P)?y-P3W8LXogr?mqB0J*@{mH+?%

literal 0
HcmV?d00001

diff --git a/src/freedombone-addsipuser b/src/freedombone-addsipuser
new file mode 100755
index 000000000..10d565496
--- /dev/null
+++ b/src/freedombone-addsipuser
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# .---.                  .              .
+# |                      |              |
+# |--- .--. .-.  .-.  .-.|  .-. .--.--. |.-.  .-. .--.  .-.
+# |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
+# '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
+#
+#                    Freedom in the Cloud
+#
+
+# Adds a SIP phone user to the system
+
+# License
+# =======
+#
+# Copyright (C) 2015 Bob Mottram <bob@robotics.uk.to>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+exit 0
diff --git a/src/freedombone-adduser b/src/freedombone-adduser
index ec4634229..aebfa9877 100755
--- a/src/freedombone-adduser
+++ b/src/freedombone-adduser
@@ -1,4 +1,34 @@
 #!/bin/bash
+#
+# .---.                  .              .
+# |                      |              |
+# |--- .--. .-.  .-.  .-.|  .-. .--.--. |.-.  .-. .--.  .-.
+# |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
+# '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
+#
+#                    Freedom in the Cloud
+#
+
+# Adds an user to the system
+
+# License
+# =======
+#
+# Copyright (C) 2015 Bob Mottram <bob@robotics.uk.to>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
 MY_USERNAME=$1
 SSH_PUBLIC_KEY="$2"
 GPG_KEYSERVER='hkp://keys.gnupg.net'
diff --git a/src/freedombone-rmsipuser b/src/freedombone-rmsipuser
new file mode 100755
index 000000000..e40f2f83a
--- /dev/null
+++ b/src/freedombone-rmsipuser
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# .---.                  .              .
+# |                      |              |
+# |--- .--. .-.  .-.  .-.|  .-. .--.--. |.-.  .-. .--.  .-.
+# |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
+# '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
+#
+#                    Freedom in the Cloud
+#
+
+# Removes a SIP phone user from the system
+
+# License
+# =======
+#
+# Copyright (C) 2015 Bob Mottram <bob@robotics.uk.to>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+exit 0
-- 
GitLab