Megatest

Check-in [01a7a8df36]
Login
Overview
Comment:Automated merge of v1.63/3e82d9d73f/integ into integ-home
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | integ-home
Files: files | file ages | folders
SHA1: 01a7a8df36a798a390cc6f18fd210fe52fcb2d40
User & Date: matt on 2017-01-13 17:50:08
Other Links: branch diff | manifest | tags
Context
2017-01-13
18:08
Automated merge of v1.63-xor-report/6217b90877/integ into integ-home check-in: c3e1f2c537 user: matt tags: integ-home
17:50
Automated merge of v1.63/3e82d9d73f/integ into integ-home check-in: 01a7a8df36 user: matt tags: integ-home
17:31
Automated merge of v1.63/cc2e1ee395/integ into integ-home check-in: 6e81dd5f22 user: matt tags: integ-home
17:05
adding script to do check whether on home host check-in: 3e82d9d73f user: bjbarcla tags: v1.63
Changes

Added utils/homehost_check.sh version [f297bf7c02].



































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

#exits 1 when current host is not homehost.

if [[ ! -e .homehost ]]; then
    exit 0
fi

homehostname=$( host `cat .homehost` | awk '{print $NF}' | sed 's/\.$//' )
hostname=$( hostname -f )

if [[ $homehostname == $hostname ]]; then
    exit 0
fi
echo "ERROR: this host ($homehostname) is not the megatest homehost ($hostname)"
exit 1