home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Intuitiv 3D
/
Intuitiv3D_1.img
/
CubXLicenseServer.pkg
/
CubXLicenseServer.post_install
< prev
next >
Wrap
Text File
|
1993-07-08
|
832b
|
39 lines
#!/bin/sh
#
#
PATH=/bin
export PATH
INSTALLDIR=$2
grep CUBXLICENSE /etc/rc.local >/dev/null 2>/dev/null
case $? in
1 ) # delete very old rc.local.old
[ -f /etc/rc.local.old ] && rm -f /etc/rc.local.old
# backup rc.local in rc.local.old
cp /etc/rc.local /etc/rc.local.old
# add a line in rc.local
echo "## Start Cub'X license server CUBXLICENSE" >> /etc/rc.local
echo "[ -f $INSTALLDIR/CubX/CubXLicenseServer ] && $INSTALLDIR/CubX/CubXLicenseServer CUBXLICENSE &" >> /etc/rc.local
# start server
$INSTALLDIR/CubX/CubXLicenseServer CUBXLICENSE > /dev/null 2> /dev/null < /dev/null &
# done
echo "OK"
exit 0
;;
2 ) # Error : cannot open /etc/rc.local
echo "FAILED (cannot open /etc/rc.local)"
exit 1
;;
0 ) # Cub'X license already installed
echo "OK"
exit 0
;;
esac
# not reachable...