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