I'm not able to get it to mount when automatically
It umount automatically without a problem

When I run it manually i get this


ignacio@ignacio-Laptop:/etc/network/if-up.d$ ./homedir
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
[: 109: missing ]
./homedir: 109: id-un: not found
/home/ignacio/homedir mounted as current user ()

and it mounts fine.

Any idea of how to fix it?

Thanks!