Skip to content

Latest commit

 

History

History
56 lines (32 loc) · 1.91 KB

README.md

File metadata and controls

56 lines (32 loc) · 1.91 KB

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