You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
583 B
Bash

#!/bin/bash
# Synology sucks so I have to do some gross hacks.
#
# Both of these are already mounted as /volumeUSBn/usbshare
# But fuck it, we'll mount them by UUID again.
mount -U 6a748cf9-e31c-430c-9017-e2709338495d /volume1/main/video
mount -U 8681ad07-6f73-4faa-9424-a84283985483 /volume1/main/gen
# Fuck their samba share configuation.
mv /etc/samba/smb.share.conf /etc/samba/smb.share.old
# We hid the file here, but it's not executable. It's not a script.
cp /usr/local/etc/rc.d/smb.sh /etc/samba/smb.share.conf
# Restart samba
synopkg restart SMBService
# Fuck Synology DSM