#!/bin/bash # FSKit Module Verification Script # Verifies if FSKit Module is installed correctly # # Date: 2026-05-26 # Version: 1.0 echo "=========================================" echo "FSKit Module Verification" echo "=========================================" echo "" # Check if bundle exists in system directory echo "Check 1: Bundle exists in /Library/Filesystems" echo "--------------------------------------" if [ -d "/Library/Filesystems/MarkBaseFS FSKit Module.bundle" ]; then echo "✅ Bundle exists in system directory" ls -la "/Library/Filesystems/MarkBaseFS FSKit Module.bundle" else echo "❌ Bundle not found in system directory" echo " Please run install_fskit_module.sh first" exit 1 fi echo "" # Check bundle contents echo "Check 2: Bundle contents" echo "--------------------------------------" echo "Bundle Info.plist:" cat "/Library/Filesystems/MarkBaseFS FSKit Module.bundle/Contents/Info.plist" | grep -A 2 "CFBundleIdentifier" echo "" echo "Bundle executable:" ls -la "/Library/Filesystems/MarkBaseFS FSKit Module.bundle/Contents/MacOS/" echo "" # Check permissions echo "Check 3: Bundle permissions" echo "--------------------------------------" if [ -x "/Library/Filesystems/MarkBaseFS FSKit Module.bundle" ]; then echo "✅ Bundle has executable permissions" else echo "❌ Bundle missing executable permissions" echo " Please run: sudo chmod 755 '/Library/Filesystems/MarkBaseFS FSKit Module.bundle'" fi echo "" # Check ownership echo "Check 4: Bundle ownership" echo "--------------------------------------" OWNERSHIP=$(ls -ld "/Library/Filesystems/MarkBaseFS FSKit Module.bundle" | awk '{print $3":"$4}') if [ "$OWNERSHIP" = "root:wheel" ]; then echo "✅ Bundle has correct ownership (root:wheel)" else echo "❌ Bundle has incorrect ownership ($OWNERSHIP)" echo " Please run: sudo chown root:wheel '/Library/Filesystems/MarkBaseFS FSKit Module.bundle'" fi echo "" # Summary echo "Summary" echo "--------------------------------------" echo "FSKit Module Installation Status:" echo " - Bundle location: /Library/Filesystems/" echo " - Bundle name: MarkBaseFS FSKit Module.bundle" echo " - Bundle ID: com.accusys.markbase.fskitmodule" echo "" echo "Next Steps:" echo " - Restart macOS or FSKit service to load module" echo " - Use FSClient.fetchInstalledExtensions() to verify module loading" echo " - Test mount functionality via Disk Utility or terminal" echo "" echo "=========================================" echo "FSKit Module Verification Complete" echo "========================================="