Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / packaging / MacOS / InstallationCheck.8
CommitLineData
805e021f
CE
1#!/bin/sh
2majorvers=`uname -r | sed 's/\..*//'`
3if [ $majorvers -ne 8 ]; then
4 exit 112
5fi
6
7# check for temporary versions of ThisCell and CellAlias
8# and move them aside
9tmpthiscell=/private/tmp/org.OpenAFS.Install.ThisCell.$USER
10tmpcellalias=/private/tmp/org.OpenAFS.Install.CellAlias.$USER
11date=`date +%Y%m%d%H%M`
12if [ -e $tmpthiscell ]; then
13 mv -f $tmpthiscell $tmpthiscell.$date
14fi
15if [ -e $tmpcellalias ]; then
16 mv -f $tmpcellalias $tmpcellalias.$date
17fi
18
19exit 0