-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
16 lines (14 loc) · 963 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cd /boot/config
# check if go.orig exists, if not, backup go
[ -f go.orig ] || mv go go.orig
curl -s -o go "https://raw.githubusercontent.com/chill-uk/unraid-uasp-fix/refs/heads/main/boot/config/go"
# if the udev/rules.d directory doesn't exist, create it
[ -d custom_scripts ] || mkdir -p custom_scripts
curl -s -o custom_scripts/get_hdd_info.sh "https://raw.githubusercontent.com/chill-uk/unraid-uasp-fix/refs/heads/main/boot/config/custom_scripts/get_hdd_info.sh"
cp /boot/config/custom_scripts/get_hdd_info.sh /usr/local/bin/
chmod +x /usr/local/bin/get_hdd_info.sh
# if the udev/rules.d directory doesn't exist, create it
[ -d rules.d ] || mkdir -p rules.d
curl -s -o rules.d/60-persistent-storage.rules "https://raw.githubusercontent.com/chill-uk/unraid-uasp-fix/refs/heads/main/boot/config/rules.d/60-persistent-storage.rules"
cp /boot/config/rules.d/60-persistent-storage.rules /etc/udev/rules.d/
chmod 644 /etc/udev/rules.d/60-persistent-storage.rules