Merge pull request #89 from wickedyoda/macos-update

Macos update
This commit is contained in:
WickedYoda authored and GitHub committed 2026-08-05 13:20:24 -05:00
commit 1e25e36ce6
195 files changed
+152301

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
<<<<<<< HEAD
# reset_perms
## Purpose
This directory contains files related to **reset perms**.
## Contents
- `reset_perms 1.sh`
- `reset_perms.sh`
## Usage
- Review each script or configuration file before running
- Some scripts may require **root or sudo**
- Paths and variables may need adjustment for your environment
## Notes
- This folder is part of the **public-setupfiles** repository
- Files are provided as-is for reference or automation
## Safety
Always back up data before running scripts that modify system state.
=======
# reset_perms
## Overview
This directory is part of the **public-setupfiles** repository.
It contains scripts, configuration files, or resources related to **reset_perms**.
## Usage
- Review scripts before execution
- Some files may require **root or sudo privileges**
- Paths, variables, or credentials may need customization
## Logging & Output
Scripts may generate logs or output files in the same directory or system locations.
## Safety Notes
- Always back up important data before running scripts
- Test in a non-production environment when possible
- Use at your own risk
---
>>>>>>> main
View File
Whitespace-only changes.
+38
View File
@@ -0,0 +1,38 @@
#!/bin/bash
# Define mount points and devices
declare -A mounts=(
["/mnt/public"]="/dev/sdc1"
["/mnt/public-bk"]="/dev/sde1"
["/mnt/public2"]="/dev/sdd1"
["/mnt/public2-bk"]="/dev/sdb1"
)
# Ensure mount folders exist
for dir in "${!mounts[@]}"; do
echo "Creating $dir if needed..."
mkdir -p "$dir"
done
# Mount each device to its folder
for dir in "${!mounts[@]}"; do
device="${mounts[$dir]}"
echo "Mounting $device to $dir..."
mount "$device" "$dir"
done
# Bind mount for timeshift folders
echo "Creating timeshift bind mounts..."
mkdir -p /mnt/timeshift /mnt/timeshift1
mount --bind /mnt/public2 /mnt/timeshift
mount --bind /mnt/public2-bk /mnt/timeshift1
# Apply root ownership and full permissions
echo "Setting root:root ownership and chmod 777..."
for path in /mnt/public /mnt/public-bk /mnt/public2 /mnt/public2-bk /mnt/timeshift /mnt/timeshift1; do
echo "Processing $path..."
chown -R root:root "$path"
chmod -R 777 "$path"
done
echo "All mounts and permissions applied successfully."