It's not clear to me what role D-Link plays in this. Why is a script from a proprietary company mounting your partitions? Does the usual /etc/fstab not come into play?
Your workarounds are certainly kludgy and I agree that you're right to find a better way. -- Linux Tips: https://www.tiger-computing.co.uk/category/techtips/ -- Next meeting: Online, Jitsi, Tuesday, 2020-09-01 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk