Skip to content

Nebu2k/networkkeeper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network Drive Keeper für macOS

Hält automatisch Verbindungen zu Netzlaufwerken aufrecht. Schnell, leicht, unsichtbar.

✨ Features

  • Schnell - Reconnect in ~5 Sekunden nach VPN-Verbindung
  • 🪶 Leicht - ~0.1% CPU, adaptive Intervalle (5s/30s)
  • 😌 Entspannt - Keine Error-Dialoge, kein Spam bei Offline
  • 🔐 Sicher - Keychain-Integration, keine Passwörter im Script
  • 🎯 Einfach - Einmal einrichten, läuft von selbst

Unterstützt: SMB, AFP, NFS

🚀 Quick Start

./install.sh
nk add "smb://server.local/share"
nk start

Fertig! 🎉

📖 Befehle

nk add "smb://server/share"     # Share hinzufügen
nk start                        # Service starten
nk status                       # Status anzeigen
nk restart                      # Neustart

Logs ansehen:

tail -f ~/.network_keeper.log   # Live ansehen

Alles andere:

nk                              # Zeigt alle Befehle

💡 Wie es funktioniert

Intelligentes Monitoring:

  • ✅ Gemountet → Check alle 5 Sekunden (nur `mount` grep, fast & leicht)
  • ❌ Offline → Check alle 30 Sekunden (Port-Check, entspannt)
  • 🔌 VPN reconnect → Automatischer Mount innerhalb 30s

Keine Error-Dialoge:

  • AppleScript try/catch fängt alle macOS-Fehler ab
  • Läuft still im Hintergrund

🔍 Troubleshooting

Logs ansehen:

tail -f ~/.network_keeper.log   # Live ansehen
tail -50 ~/.network_keeper.log  # Letzte 50 Zeilen

Häufige Probleme:

  • "Share not available" → VPN getrennt oder Server offline
  • "Connection timeout" → Server antwortet nicht, wird automatisch retried

Service-Status:

nk status                       # Zeigt alles Wichtige

🗑️ Deinstallation

./uninstall.sh

Konfiguration: ~/.network_keeper_config
Log-Datei: ~/.network_keeper.log (auto-rotiert bei 1MB)
Service: LaunchAgent (startet automatisch beim Login)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%