-
Notifications
You must be signed in to change notification settings - Fork 4
/
koomie_cf
executable file
·35 lines (31 loc) · 1.4 KB
/
koomie_cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
#-----------------------------------------------------------------------bl-
#--------------------------------------------------------------------------
#
# LosF - a Linux operating system Framework for HPC clusters
#
# Copyright (C) 2007-2014 Karl W. Schulz <losf@koomie.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the Version 2 GNU General
# Public License as published by the Free Software Foundation.
#
# These programs are distributed in the hope that they will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc. 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA
#
#-----------------------------------------------------------------------el-
# Shell wrapper for querying local node type -> echo's config to stdout
#--------------------------------------------------------------------------
# determine path to binary
[[ -L $0 ]] && binary=`readlink -f $0` || binary=$0
# disable colors for non-interactive shell
[[ ! -t 1 ]] && export ANSI_COLORS_DISABLED=1
export TOP_DIR=`echo $( (cd -P $(dirname $binary) && pwd) )`
$TOP_DIR/utils/koomie_cf.pl "$@"