Skip to content

Instantly share code, notes, and snippets.

View zap0xfce2's full-sized avatar
💭
Socialized Software Developer, Gaming Nerd & 24/7 Geek

Zap0xfce2 zap0xfce2

💭
Socialized Software Developer, Gaming Nerd & 24/7 Geek
View GitHub Profile
@zap0xfce2
zap0xfce2 / check_automount.sh
Last active February 17, 2026 11:12
Check and add auto_master entry if missing
#!/bin/bash
# Check and add auto_master entry if missing
AUTO_MASTER="/etc/auto_master"
ENTRY="/System/Volumes/Data/NetDrive auto_smb -nosuid,noowners"
# Check if entry exists
if ! grep -Fq "$ENTRY" "$AUTO_MASTER"; then
echo "$ENTRY" >> "$AUTO_MASTER"
automount -vc