Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# this script will run only once. it is to be placed in the /etc/init.d/ directory
# it will create an ebs volume and mount it
# add it to /etc/init.d/mounter
# and run sudo update-rc.d mounter defaults
# to make it run on boot
FLAG="/var/log/mounter.log"
if [ ! -f $FLAG ]; then