#!/bin/bash ################################################################################ # # File: $RCSfile: system,v $ # Revision: $Revision: 1.6 $ # Description: System specific settings # Author: Andrew@DeFaria.com # Created: Mon Aug 20 17:35:01 2001 # Modified: $Date: 2010/06/11 20:42:23 $ # Language: bash # # (c) Copyright 2000-2005, Andrew@DeFaria.com, all rights reserved. # ################################################################################ # This system's name export SYSNAME=$(uname -n) # Strip domains SYSNAME=${SYSNAME%%\.*} # Set to initial cap SYSNAME=$(echo ${SYSNAME:0:1} | tr [:lower:] [:upper:])$(echo ${SYSNAME:1} | tr [:upper:] [:lower:]) # Aliasing case "$SYSNAME" in Andrews-macbook-pro) SYSNAME="cPanel" ;; 10-2-99-60) SYSNAME="Sandbox Centos" ;; 10-2-96-67) SYSNAME="Sandbox AlmaLinux" ;; 10-2-98-185) SYSNAME="Sandbox Ubuntu" ;; esac