In detail, here's my script that is run after login:
#!/bin/bashIt surely isn't perfect, but solves the need. If you want to use it, replace the two occurences of server with the name of your Windows/Samba server and share with the name of the network share you want to mount. You can of course place more gvfs-mount lines at the bottom.
SERVER=
while [ -z "$SERVER" ] ; do
SERVER=`host server | grep address`
done
gvfs-mount smb://server/share
It might also be a good starting point for some if-up / ip-up scripts, or even in laptop situations where the drives are only mounted when connected to the 'right' network (identified by the host lookup).
Any comments?
No comments:
Post a Comment