This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 🧿 Mount external development drive | |
MOUNTPOINT="/mnt/dev" | |
DEVICE="/dev/sdX1" # <-- Replace with your actual device ID (e.g., /dev/sda1) | |
if ! mountpoint -q "$MOUNTPOINT"; then | |
echo "🔌 Mounting $DEVICE to $MOUNTPOINT..." | |
sudo mount "$DEVICE" "$MOUNTPOINT" | |
else | |
echo "✅ $MOUNTPOINT is already mounted." |