Selaa lähdekoodia

Don't need voip menu

Bob Mottram 9 vuotta sitten
vanhempi
commit
e2cddba54e
1 muutettua tiedostoa jossa 17 lisäystä ja 68 poistoa
  1. 17
    68
      src/freedombone-controlpanel

+ 17
- 68
src/freedombone-controlpanel Näytä tiedosto

@@ -1204,33 +1204,6 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168
1204 1204
     fi
1205 1205
 }
1206 1206
 
1207
-function mumble_via_onion {
1208
-    if ! grep -q $"VoIP onion domain" $COMPLETION_FILE; then
1209
-        return
1210
-    fi
1211
-    if [ ! -f /etc/mumble-server.ini ]; then
1212
-        return
1213
-    fi
1214
-    enable_mumble_via_onion="no"
1215
-    dialog --title $"Enable Mumble via onion service" \
1216
-           --backtitle $"Freedombone Control Panel" \
1217
-           --defaultno \
1218
-           --yesno $"Enable Mumble via an onion domain?" 10 60
1219
-    sel=$?
1220
-    case $sel in
1221
-        0) enable_mumble_via_onion="yes";;
1222
-        255) return;;
1223
-    esac
1224
-
1225
-    if [[ $enable_mumble_via_onion == "yes" ]]; then
1226
-        sed -i "s|port=.*|port=${VOIP_ONION_PORT}|g" /etc/mumble-server.ini
1227
-    else
1228
-        sed -i "s|port=.*|port=${VOIP_PORT}|g" /etc/mumble-server.ini
1229
-    fi
1230
-
1231
-    systemctl restart mumble-server
1232
-}
1233
-
1234 1207
 function menu_backup_restore {
1235 1208
     while true
1236 1209
     do
@@ -1374,28 +1347,6 @@ function menu_media {
1374 1347
     done
1375 1348
 }
1376 1349
 
1377
-function menu_voip {
1378
-    while true
1379
-    do
1380
-        data=$(tempfile 2>/dev/null)
1381
-        trap "rm -f $data" 0 1 2 5 15
1382
-        dialog --backtitle $"Freedombone Control Panel" \
1383
-               --title $"SIP/VoIP Menu" \
1384
-               --radiolist $"Choose an operation:" 13 70 2 \
1385
-               1 $"Mumble via onion service" off \
1386
-               2 $"Exit" on 2> $data
1387
-        sel=$?
1388
-        case $sel in
1389
-            1) break;;
1390
-            255) break;;
1391
-        esac
1392
-        case $(cat $data) in
1393
-            1) mumble_via_onion;;
1394
-            2) break;;
1395
-        esac
1396
-    done
1397
-}
1398
-
1399 1350
 function menu_irc {
1400 1351
     while true
1401 1352
     do
@@ -1425,7 +1376,7 @@ function menu_top_level {
1425 1376
         trap "rm -f $data" 0 1 2 5 15
1426 1377
         dialog --backtitle $"Freedombone Control Panel" \
1427 1378
                --title $"Control Panel" \
1428
-               --radiolist $"Choose an operation:" 26 70 19 \
1379
+               --radiolist $"Choose an operation:" 25 70 18 \
1429 1380
                1 $"About this system" off \
1430 1381
                2 $"Backup and Restore" off \
1431 1382
                3 $"Reset Tripwire" off \
@@ -1436,15 +1387,14 @@ function menu_top_level {
1436 1387
                8 $"Security Settings" off \
1437 1388
                9 $"Hubzilla" off \
1438 1389
                10 $"Media menu" off \
1439
-               11 $"SIP/VoIP menu" off \
1440
-               12 $"IRC menu" off \
1441
-               13 $"Change the name of this system" off \
1442
-               14 $"Set the TLS date/time source" off \
1443
-               15 $"Set a static local IP address" off \
1444
-               16 $"Check for updates" off \
1445
-               17 $"Power off the system" off \
1446
-               18 $"Restart the system" off \
1447
-               19 $"Exit" on 2> $data
1390
+               11 $"IRC menu" off \
1391
+               12 $"Change the name of this system" off \
1392
+               13 $"Set the TLS date/time source" off \
1393
+               14 $"Set a static local IP address" off \
1394
+               15 $"Check for updates" off \
1395
+               16 $"Power off the system" off \
1396
+               17 $"Restart the system" off \
1397
+               18 $"Exit" on 2> $data
1448 1398
         sel=$?
1449 1399
         case $sel in
1450 1400
             1) exit 1;;
@@ -1461,15 +1411,14 @@ function menu_top_level {
1461 1411
             8) security_settings;;
1462 1412
             9) menu_hubzilla;;
1463 1413
             10) menu_media;;
1464
-            11) menu_voip;;
1465
-            12) menu_irc;;
1466
-            13) change_system_name;;
1467
-            14) set_tls_time_source;;
1468
-            15) set_static_IP;;
1469
-            16) check_for_updates;;
1470
-            17) shut_down_system;;
1471
-            18) restart_system;;
1472
-            19) break;;
1414
+            11) menu_irc;;
1415
+            12) change_system_name;;
1416
+            13) set_tls_time_source;;
1417
+            14) set_static_IP;;
1418
+            15) check_for_updates;;
1419
+            16) shut_down_system;;
1420
+            17) restart_system;;
1421
+            18) break;;
1473 1422
         esac
1474 1423
     done
1475 1424
 }