- System protection script with custom enhancements and TUI interface - Browser tab limiting and application-specific monitoring - AI behavior learning and predictive analysis - Terminal-based configuration interface - Multi-distro installation support
39 lines
2.2 KiB
Bash
Executable File
39 lines
2.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "=== PC Monitor Enhancement Verification ==="
|
|
echo
|
|
|
|
echo "1. Checking new functions exist:"
|
|
if grep -q "classify_application" pc-monitor.sh; then echo "✓ classify_application"; else echo "✗ classify_application"; fi
|
|
if grep -q "monitor_browser_tabs" pc-monitor.sh; then echo "✓ monitor_browser_tabs"; else echo "✗ monitor_browser_tabs"; fi
|
|
if grep -q "monitor_network" pc-monitor.sh; then echo "✓ monitor_network"; else echo "✗ monitor_network"; fi
|
|
if grep -q "monitor_io" pc-monitor.sh; then echo "✓ monitor_io"; else echo "✗ monitor_io"; fi
|
|
if grep -q "predictive_monitoring" pc-monitor.sh; then echo "✓ predictive_monitoring"; else echo "✗ predictive_monitoring"; fi
|
|
if grep -q "get_process_behavior_score" pc-monitor.sh; then echo "✓ get_process_behavior_score"; else echo "✗ get_process_behavior_score"; fi
|
|
|
|
echo
|
|
echo "2. Checking enhanced configuration variables:"
|
|
if grep -q "BROWSER_TAB_LIMIT" pc-monitor.sh; then echo "✓ BROWSER_TAB_LIMIT"; else echo "✗ BROWSER_TAB_LIMIT"; fi
|
|
if grep -q "AGGRESSIVE_ON_BROWSERS" pc-monitor.sh; then echo "✓ AGGRESSIVE_ON_BROWSERS"; else echo "✗ AGGRESSIVE_ON_BROWSERS"; fi
|
|
if grep -q "FIREFOX_MAX_TABS" pc-monitor.sh; then echo "✓ FIREFOX_MAX_TABS"; else echo "✗ FIREFOX_MAX_TABS"; fi
|
|
if grep -q "CHROME_MAX_TABS" pc-monitor.sh; then echo "✓ CHROME_MAX_TABS"; else echo "✗ CHROME_MAX_TABS"; fi
|
|
|
|
echo
|
|
echo "3. Checking GUI files:"
|
|
if [ -f "pc-monitor-gui.py" ]; then echo "✓ GUI script exists"; else echo "✗ GUI script missing"; fi
|
|
if [ -f "pc-monitor-gui.desktop" ]; then echo "✓ Desktop entry exists"; else echo "✗ Desktop entry missing"; fi
|
|
|
|
echo
|
|
echo "4. Checking syntax:"
|
|
if bash -n pc-monitor.sh; then echo "✓ Main script syntax OK"; else echo "✗ Main script syntax error"; fi
|
|
if python3 -c "import ast; ast.parse(open('pc-monitor-gui.py').read())" 2>/dev/null; then echo "✓ GUI script syntax OK"; else echo "✗ GUI script syntax error"; fi
|
|
|
|
echo
|
|
echo "Enhancement verification complete!"
|
|
echo "Your PC Monitor now has advanced features including:"
|
|
echo "• Browser tab limiting"
|
|
echo "• Application-specific monitoring"
|
|
echo "• AI behavior learning"
|
|
echo "• Predictive analysis"
|
|
echo "• Network/IO monitoring"
|
|
echo "• GUI configuration manager" |