| 
				
			 | 
			
			
				@@ -1559,6 +1559,19 @@ function reinstall_mariadb { 
			 | 
		
	
		
			
			| 
				1559
			 | 
			
				1559
			 | 
			
			
				            --msgbox $"MariaDB has been reinstalled" 6 40 
			 | 
		
	
		
			
			| 
				1560
			 | 
			
				1560
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				1561
			 | 
			
				1561
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				1562
			 | 
			
			
				+function show_firewall { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1563
			 | 
			
			
				+    clear 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1564
			 | 
			
			
				+    echo $"Firewall Settings" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1565
			 | 
			
			
				+    echo '' 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1566
			 | 
			
			
				+    while read line; do 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1567
			 | 
			
			
				+        firewall_name=$(echo "$line" | awk -F '=' '{print $1}') 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1568
			 | 
			
			
				+        firewall_port=$(echo "$line" | awk -F '=' '{print $2}') 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1569
			 | 
			
			
				+        echo -n -e "$(pad_string '$firewall_name')" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1570
			 | 
			
			
				+        echo "${firewall_port}" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1571
			 | 
			
			
				+    done < $FIREWALL_CONFIG 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1572
			 | 
			
			
				+    any_key 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1573
			 | 
			
			
				+} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1574
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				1562
			 | 
			
				1575
			 | 
			
			
				 function menu_backup_restore { 
			 | 
		
	
		
			
			| 
				1563
			 | 
			
				1576
			 | 
			
			
				     while true 
			 | 
		
	
		
			
			| 
				1564
			 | 
			
				1577
			 | 
			
			
				     do 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -1758,23 +1771,24 @@ function menu_top_level { 
			 | 
		
	
		
			
			| 
				1758
			 | 
			
				1771
			 | 
			
			
				                --radiolist $"Choose an operation:" 29 70 22 \ 
			 | 
		
	
		
			
			| 
				1759
			 | 
			
				1772
			 | 
			
			
				                1 $"About this system" off \ 
			 | 
		
	
		
			
			| 
				1760
			 | 
			
				1773
			 | 
			
			
				                2 $"Backup and Restore" off \ 
			 | 
		
	
		
			
			| 
				1761
			 | 
			
				
			 | 
			
			
				-               3 $"Reset Tripwire" off \ 
			 | 
		
	
		
			
			| 
				1762
			 | 
			
				
			 | 
			
			
				-               4 $"App Settings" off \ 
			 | 
		
	
		
			
			| 
				1763
			 | 
			
				
			 | 
			
			
				-               5 $"Add/Remove Apps" off \ 
			 | 
		
	
		
			
			| 
				1764
			 | 
			
				
			 | 
			
			
				-               6 $"Logging on/off" off \ 
			 | 
		
	
		
			
			| 
				1765
			 | 
			
				
			 | 
			
			
				-               7 $"Ping enable/disable" off \ 
			 | 
		
	
		
			
			| 
				1766
			 | 
			
				
			 | 
			
			
				-               8 $"Manage Users" off \ 
			 | 
		
	
		
			
			| 
				1767
			 | 
			
				
			 | 
			
			
				-               9 $"Email Filtering Rules" off \ 
			 | 
		
	
		
			
			| 
				1768
			 | 
			
				
			 | 
			
			
				-               10 $"Outgoing Email Proxy" off \ 
			 | 
		
	
		
			
			| 
				1769
			 | 
			
				
			 | 
			
			
				-               11 $"Security Settings" off \ 
			 | 
		
	
		
			
			| 
				1770
			 | 
			
				
			 | 
			
			
				-               12 $"Set the main repository (repo mirrors)" off \ 
			 | 
		
	
		
			
			| 
				1771
			 | 
			
				
			 | 
			
			
				-               13 $"Change the name of this system" off \ 
			 | 
		
	
		
			
			| 
				1772
			 | 
			
				
			 | 
			
			
				-               14 $"Set a static local IP address" off \ 
			 | 
		
	
		
			
			| 
				1773
			 | 
			
				
			 | 
			
			
				-               15 $"Wifi menu" off \ 
			 | 
		
	
		
			
			| 
				1774
			 | 
			
				
			 | 
			
			
				-               16 $"Check for updates" off \ 
			 | 
		
	
		
			
			| 
				1775
			 | 
			
				
			 | 
			
			
				-               17 $"Power off the system" off \ 
			 | 
		
	
		
			
			| 
				1776
			 | 
			
				
			 | 
			
			
				-               18 $"Restart the system" off \ 
			 | 
		
	
		
			
			| 
				1777
			 | 
			
				
			 | 
			
			
				-               19 $"Exit" on 2> $data 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1774
			 | 
			
			
				+               3 $"Show Firewall" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1775
			 | 
			
			
				+               4 $"Reset Tripwire" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1776
			 | 
			
			
				+               5 $"App Settings" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1777
			 | 
			
			
				+               6 $"Add/Remove Apps" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1778
			 | 
			
			
				+               7 $"Logging on/off" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1779
			 | 
			
			
				+               8 $"Ping enable/disable" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1780
			 | 
			
			
				+               9 $"Manage Users" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1781
			 | 
			
			
				+               10 $"Email Filtering Rules" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1782
			 | 
			
			
				+               11 $"Outgoing Email Proxy" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1783
			 | 
			
			
				+               12 $"Security Settings" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1784
			 | 
			
			
				+               13 $"Set the main repository (repo mirrors)" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1785
			 | 
			
			
				+               14 $"Change the name of this system" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1786
			 | 
			
			
				+               15 $"Set a static local IP address" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1787
			 | 
			
			
				+               16 $"Wifi menu" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1788
			 | 
			
			
				+               17 $"Check for updates" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1789
			 | 
			
			
				+               18 $"Power off the system" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1790
			 | 
			
			
				+               19 $"Restart the system" off \ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1791
			 | 
			
			
				+               20 $"Exit" on 2> $data 
			 | 
		
	
		
			
			| 
				1778
			 | 
			
				1792
			 | 
			
			
				         sel=$? 
			 | 
		
	
		
			
			| 
				1779
			 | 
			
				1793
			 | 
			
			
				         case $sel in 
			 | 
		
	
		
			
			| 
				1780
			 | 
			
				1794
			 | 
			
			
				             1) exit 1;; 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -1783,23 +1797,24 @@ function menu_top_level { 
			 | 
		
	
		
			
			| 
				1783
			 | 
			
				1797
			 | 
			
			
				         case $(cat $data) in 
			 | 
		
	
		
			
			| 
				1784
			 | 
			
				1798
			 | 
			
			
				             1) show_about;; 
			 | 
		
	
		
			
			| 
				1785
			 | 
			
				1799
			 | 
			
			
				             2) menu_backup_restore;; 
			 | 
		
	
		
			
			| 
				1786
			 | 
			
				
			 | 
			
			
				-            3) reset_tripwire;; 
			 | 
		
	
		
			
			| 
				1787
			 | 
			
				
			 | 
			
			
				-            4) menu_app_settings;; 
			 | 
		
	
		
			
			| 
				1788
			 | 
			
				
			 | 
			
			
				-            5) ${PROJECT_NAME}-addremove;; 
			 | 
		
	
		
			
			| 
				1789
			 | 
			
				
			 | 
			
			
				-            6) logging_on_off;; 
			 | 
		
	
		
			
			| 
				1790
			 | 
			
				
			 | 
			
			
				-            7) ping_enable_disable;; 
			 | 
		
	
		
			
			| 
				1791
			 | 
			
				
			 | 
			
			
				-            8) menu_users;; 
			 | 
		
	
		
			
			| 
				1792
			 | 
			
				
			 | 
			
			
				-            9) menu_email;; 
			 | 
		
	
		
			
			| 
				1793
			 | 
			
				
			 | 
			
			
				-            10) smtp_proxy;; 
			 | 
		
	
		
			
			| 
				1794
			 | 
			
				
			 | 
			
			
				-            11) security_settings;; 
			 | 
		
	
		
			
			| 
				1795
			 | 
			
				
			 | 
			
			
				-            12) set_main_repo;; 
			 | 
		
	
		
			
			| 
				1796
			 | 
			
				
			 | 
			
			
				-            13) change_system_name;; 
			 | 
		
	
		
			
			| 
				1797
			 | 
			
				
			 | 
			
			
				-            14) set_static_IP;; 
			 | 
		
	
		
			
			| 
				1798
			 | 
			
				
			 | 
			
			
				-            15) menu_wifi;; 
			 | 
		
	
		
			
			| 
				1799
			 | 
			
				
			 | 
			
			
				-            16) check_for_updates;; 
			 | 
		
	
		
			
			| 
				1800
			 | 
			
				
			 | 
			
			
				-            17) shut_down_system;; 
			 | 
		
	
		
			
			| 
				1801
			 | 
			
				
			 | 
			
			
				-            18) restart_system;; 
			 | 
		
	
		
			
			| 
				1802
			 | 
			
				
			 | 
			
			
				-            19) break;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1800
			 | 
			
			
				+            3) show_firewall;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1801
			 | 
			
			
				+            4) reset_tripwire;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1802
			 | 
			
			
				+            5) menu_app_settings;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1803
			 | 
			
			
				+            6) ${PROJECT_NAME}-addremove;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1804
			 | 
			
			
				+            7) logging_on_off;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1805
			 | 
			
			
				+            8) ping_enable_disable;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1806
			 | 
			
			
				+            9) menu_users;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1807
			 | 
			
			
				+            10) menu_email;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1808
			 | 
			
			
				+            11) smtp_proxy;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1809
			 | 
			
			
				+            12) security_settings;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1810
			 | 
			
			
				+            13) set_main_repo;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1811
			 | 
			
			
				+            14) change_system_name;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1812
			 | 
			
			
				+            15) set_static_IP;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1813
			 | 
			
			
				+            16) menu_wifi;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1814
			 | 
			
			
				+            17) check_for_updates;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1815
			 | 
			
			
				+            18) shut_down_system;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1816
			 | 
			
			
				+            19) restart_system;; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1817
			 | 
			
			
				+            20) break;; 
			 | 
		
	
		
			
			| 
				1803
			 | 
			
				1818
			 | 
			
			
				         esac 
			 | 
		
	
		
			
			| 
				1804
			 | 
			
				1819
			 | 
			
			
				     done 
			 | 
		
	
		
			
			| 
				1805
			 | 
			
				1820
			 | 
			
			
				 } 
			 |