Selaa lähdekoodia

Revert changes in debug and reporting

DSR! 2 vuotta sitten
vanhempi
säilyke
f9d7a3a456

+ 2 - 2
src/pineapple/modules/Help/files/debug

@@ -36,8 +36,8 @@ echo "Performing site survey"
 echo "============SURVEY=========" >> $LOG
 echo -e "\tEnsuring pineapd is started"
 (/etc/init.d/pineapd start 2>&1) >> $LOG
-#scan_type=0
-scan_type=2
+scan_type=0
+cat /proc/cpuinfo | grep TETRA && scan_type=2
 echo -e "\tRunning scan type $scan_type for 15 seconds"
 (/usr/bin/pineap /tmp/pineap.conf run_scan 15 $scan_type 2>&1) >> $LOG
 sleep 2

+ 2 - 2
src/pineapple/modules/Reporting/files/reporting

@@ -51,8 +51,8 @@ getSiteReport() {
         /etc/init.d/pineapd start
         sleep 3
         duration=$(uci get reporting.@settings[0].duration)
-        #scan_type=0
-        scan_type=2
+        scan_type=0
+        cat /proc/cpuinfo | grep TETRA && scan_type=2
         echo -e "\tRunning scan type $scan_type for 15 seconds"
         (/usr/bin/pineap /tmp/pineap.conf run_scan $duration $scan_type 2>&1) >> /tmp/reporting.log
         sleep 2