#!/bin/bash # written by Tomas (www.lisenet.com) # 27/06/2014 (dd/mm/yy) # copyleft free software # script makes Swithvox SMB Amazon EC2 compatible # echo "Remove the exit line to run the script." exit # remove the "exit" line ABOVE to run the script echo "Creating a backup of existing sshd_config file" cp /etc/ssh/sshd_config /etc/ssh/sshd_config.backup echo "Creating new sshd_config file" cat > /etc/ssh/sshd_config < /etc/yum.repos.d/file.repo < /etc/modprobe.conf < /etc/sysconfig/network-scripts/ifcfg-eth0 < /etc/sysconfig/network <