Is there a way for symlinks to have fallback? If the destination is not found, another one should be used.
I want to use a config file for a program that is different whether a drive is mounted or not. So I would have symlink to a config on that particular drive and if not found, it would use an alternative one.
I guess I could use a wrapper script that would check if a drive is mounted, link to a desired config and then run the application, but a wrapper script feels weird.