Skip to content

Instantly share code, notes, and snippets.

@fwartner
Created April 21, 2015 10:21
Show Gist options
  • Save fwartner/0528995df3ca184d5499 to your computer and use it in GitHub Desktop.
Save fwartner/0528995df3ca184d5499 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install autofs -y
sudo mkdir /automnt
sudo echo "/automnt /etc/auto.automnt --timeout=5 --ghost" > /etc/auto.automnt
sudo blkid -o list -w /dev/null
sudo service autofs reload && sudo service autofs start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment