Skip to content

Instantly share code, notes, and snippets.

@xupyprmv
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save xupyprmv/9322394 to your computer and use it in GitHub Desktop.

Select an option

Save xupyprmv/9322394 to your computer and use it in GitHub Desktop.
Automount a nonempty directory from /etc/fstab (bash, checked on Ubuntu 12.04)
Проверено на Ubuntu 12.04.
automount.sh
mountpoint -q /foo/bar || mount -o bind /some/directory/here /foo/bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment