Removed /usr/local from CDPATH
[clearscm.git] / rc / system
1 #!/bin/bash
2 ################################################################################
3 #
4 # File:         $RCSfile: system,v $
5 # Revision:     $Revision: 1.6 $
6 # Description:  System specific settings
7 # Author:       Andrew@DeFaria.com
8 # Created:      Mon Aug 20 17:35:01  2001
9 # Modified:     $Date: 2010/06/11 20:42:23 $
10 # Language:     bash
11 #
12 # (c) Copyright 2000-2005, Andrew@DeFaria.com, all rights reserved.
13 #
14 ################################################################################
15 # This system's name
16 export SYSNAME=$(uname -n)
17
18 # Strip domains
19 SYSNAME=${SYSNAME%%\.*}
20
21 # Set to initial cap
22 SYSNAME=$(echo ${SYSNAME:0:1} | tr [:lower:] [:upper:])$(echo ${SYSNAME:1}   | tr [:upper:] [:lower:])
23
24 # Aliasing
25 case "$SYSNAME" in
26   Andrews-macbook-pro)
27     SYSNAME="cPanel"
28     ;;
29
30   10-2-99-60)
31     SYSNAME="Sandbox Centos"
32     ;;
33
34   10-2-96-67)
35     SYSNAME="Sandbox AlmaLinux"
36     ;;
37
38   10-2-98-185)
39     SYSNAME="Sandbox Ubuntu"
40     ;;
41
42 esac