From d60ed67fa4eeeba312646358316e49c0a6cbc6f6 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 20 Oct 2016 16:15:23 -0400 Subject: initial commit --- s3_mountscripts.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 s3_mountscripts.sh (limited to 's3_mountscripts.sh') diff --git a/s3_mountscripts.sh b/s3_mountscripts.sh new file mode 100755 index 0000000..a7b6c6b --- /dev/null +++ b/s3_mountscripts.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# File: /root/s3_mountscripts.sh +# Package: deployscripts +# Author: bgstack15 +# Startdate: 2015 +# Title: Template Script 3: Mount Scripts Directory +# Purpose: Mounts the network mount for this organization +# History: 2016-05-19 given original headers +# Usage: ./s3[tab][enter] +# Reference: +# Improve: + +server=$( hostname ) +ipaddr=$( ifconfig | grep -E "Bcast|broadcast" | awk '{print $2}' | sed 's/[^0-9\.]//g;' ) +sdir=/mnt/scripts + +if [[ ! "$1" = "-y" ]]; +then + cat </dev/null + #mount -t nfs norite.example.com:/mnt/scripts /mnt/scripts + mount /mnt/scripts #it better be in /etc/fstab! +fi -- cgit