From: Chris Koeritz Date: Thu, 2 Feb 2017 06:41:47 +0000 (-0500) Subject: start of cleansing branch\n\ntossed out a few scripts for cleaning or fixing.\nnotice... X-Git-Tag: 2.140.90~255 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=659446430efd702694028eb035f4dfde85ec04ce;p=feisty_meow.git 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. --- 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 -