浏览代码

Beginning of SIP user commands

Bob Mottram 9 年前
父节点
当前提交
c8bad6ff58
共有 5 个文件被更改,包括 94 次插入0 次删除
  1. 二进制
      man/freedombone-addsipuser.1.gz
  2. 二进制
      man/freedombone-rmsipuser.1.gz
  3. 32
    0
      src/freedombone-addsipuser
  4. 30
    0
      src/freedombone-adduser
  5. 32
    0
      src/freedombone-rmsipuser

二进制
man/freedombone-addsipuser.1.gz 查看文件


二进制
man/freedombone-rmsipuser.1.gz 查看文件


+ 32
- 0
src/freedombone-addsipuser 查看文件

@@ -0,0 +1,32 @@
1
+#!/bin/bash
2
+#
3
+# .---.                  .              .
4
+# |                      |              |
5
+# |--- .--. .-.  .-.  .-.|  .-. .--.--. |.-.  .-. .--.  .-.
6
+# |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
7
+# '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
8
+#
9
+#                    Freedom in the Cloud
10
+#
11
+
12
+# Adds a SIP phone user to the system
13
+
14
+# License
15
+# =======
16
+#
17
+# Copyright (C) 2015 Bob Mottram <bob@robotics.uk.to>
18
+#
19
+# This program is free software: you can redistribute it and/or modify
20
+# it under the terms of the GNU General Public License as published by
21
+# the Free Software Foundation, either version 3 of the License, or
22
+# (at your option) any later version.
23
+#
24
+# This program is distributed in the hope that it will be useful,
25
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
26
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
+# GNU General Public License for more details.
28
+#
29
+# You should have received a copy of the GNU General Public License
30
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
31
+
32
+exit 0

+ 30
- 0
src/freedombone-adduser 查看文件

@@ -1,4 +1,34 @@
1 1
 #!/bin/bash
2
+#
3
+# .---.                  .              .
4
+# |                      |              |
5
+# |--- .--. .-.  .-.  .-.|  .-. .--.--. |.-.  .-. .--.  .-.
6
+# |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
7
+# '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
8
+#
9
+#                    Freedom in the Cloud
10
+#
11
+
12
+# Adds an user to the system
13
+
14
+# License
15
+# =======
16
+#
17
+# Copyright (C) 2015 Bob Mottram <bob@robotics.uk.to>
18
+#
19
+# This program is free software: you can redistribute it and/or modify
20
+# it under the terms of the GNU General Public License as published by
21
+# the Free Software Foundation, either version 3 of the License, or
22
+# (at your option) any later version.
23
+#
24
+# This program is distributed in the hope that it will be useful,
25
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
26
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
+# GNU General Public License for more details.
28
+#
29
+# You should have received a copy of the GNU General Public License
30
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
31
+
2 32
 MY_USERNAME=$1
3 33
 SSH_PUBLIC_KEY="$2"
4 34
 GPG_KEYSERVER='hkp://keys.gnupg.net'

+ 32
- 0
src/freedombone-rmsipuser 查看文件

@@ -0,0 +1,32 @@
1
+#!/bin/bash
2
+#
3
+# .---.                  .              .
4
+# |                      |              |
5
+# |--- .--. .-.  .-.  .-.|  .-. .--.--. |.-.  .-. .--.  .-.
6
+# |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
7
+# '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
8
+#
9
+#                    Freedom in the Cloud
10
+#
11
+
12
+# Removes a SIP phone user from the system
13
+
14
+# License
15
+# =======
16
+#
17
+# Copyright (C) 2015 Bob Mottram <bob@robotics.uk.to>
18
+#
19
+# This program is free software: you can redistribute it and/or modify
20
+# it under the terms of the GNU General Public License as published by
21
+# the Free Software Foundation, either version 3 of the License, or
22
+# (at your option) any later version.
23
+#
24
+# This program is distributed in the hope that it will be useful,
25
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
26
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
+# GNU General Public License for more details.
28
+#
29
+# You should have received a copy of the GNU General Public License
30
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
31
+
32
+exit 0