Skip to content

kkYrusobad/TheMounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TheMounter

Authors

Mounts... Why?

Suppose we have a network drive mounted with ip-1 (not connected to the VPN). Now if we connect to VPN without unmounting the drive first, mount point won't work as intended because of the public IP change (say ip-2). Changing public IPs like this makes applications running processes dependent on volume and directory end point unusable (fusermount can be used to umount volume in this case).

Solution?

Everytime this script is executed (either one), It checks for any mounted volumes (if exists).

  • if yes, then it unmounts the drive ▶️ connects to the VPN ▶️ mounts it back.
  • if not, then connects to VPN.

This happens when disconnecting from the VPN as well.


Run Locally

Clone the project

git clone https://github.com/kkYrusobad/TheMounter.git

Go to the project directory

cd TheMounter

Edit the .sh to suit your setup at home.

Roadmap

  • COLORS!
  • Merge seperate scripts to one
  • reduce keystrokes
  • increase efficiency, (pertaining to the dummy processes used)

🔗 Links

portfolio linkedin twitter

License

MIT

About

Personal script to efficiently connect to private VPN whilst keeping home server's disk mount status in mind.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages