From 659446430efd702694028eb035f4dfde85ec04ce Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 2 Feb 2017 01:41:47 -0500 Subject: [PATCH] start of cleansing branch\n\ntossed out a few scripts for cleaning or fixing.\nnoticed that lsl indent script already exists, so that is cool. --- scripts/networking/prune_domain.sh | 60 ---------------------------- scripts/networking/set_tcp_config.sh | 24 ----------- 2 files changed, 84 deletions(-) delete mode 100644 scripts/networking/prune_domain.sh delete mode 100644 scripts/networking/set_tcp_config.sh diff --git a/scripts/networking/prune_domain.sh b/scripts/networking/prune_domain.sh deleted file mode 100644 index 3b06f74c..00000000 --- a/scripts/networking/prune_domain.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash - -# takes the domain name off of the hostname provided and outputs just the -# short name for the host. the host is the first parameter, and the domain -# name is the second, but both are optional. if missing, this script uses -# the local machine's information to print a hostname stripped of domain. - -source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" - -#ha, should look back and see what other cool stuff hecho used to do. -function hecho() -{ - echo $* 1>&2 -} - -export host="$1"; shift -if [ -z "$host" ]; then - host="$(hostname)" -fi -export DOMAIN_NAME="$1"; shift -if [ -z "$DOMAIN_NAME" ]; then - # set the domain name based on what's found in the resolv.conf file, where - # dns info is often found. - DOMAIN_NAME=$(grep -i search > /etc/sysctl.conf -echo "net.core.rmem_max=$new_max" >> /etc/sysctl.conf - -echo "net.ipv4.tcp_rmem= 10240 87380 $new_max" >> /etc/sysctl.conf -echo "net.ipv4.tcp_wmem= 10240 87380 $new_max" >> /etc/sysctl.conf - -echo "net.ipv4.tcp_window_scaling = 1" >> /etc/sysctl.conf - -echo "net.ipv4.tcp_timestamps = 1" >> /etc/sysctl.conf - -echo "net.ipv4.tcp_sack = 1" >> /etc/sysctl.conf - -echo "net.ipv4.tcp_no_metrics_save = 1" >> /etc/sysctl.conf - -echo "net.core.netdev_max_backlog = 5000" >> /etc/sysctl.conf - -- 2.34.1