#!/bin/sh
#
#  This script is called by the installer package after
#  installation has completed.
#
#  The first argument is the absolute pathname of the Installer
#  package when the program is invokedPfor example,
#  /MyAppDisk#1/MyApp.pkg.  
#
#  The second argument is the absolute pathname of the location where
#  the contents of the package will be installed, for example,
#  /LocalApps or /Net/Server/User/Apps. 
#
#  We must exit with 0 if successful and we should echo
#  progress to stdout.
#
LOGON_PATH=$2/LogOn_00.92b/LogOn.app

echo
echo -n "        setting owner to root ... "
/usr/etc/chown -R root $LOGON_PATH
echo OK

cd $LOGON_PATH

echo -n "        chmod on $LOGON_PATH/Resources/restoreppp to 4755 ... "
chmod 4755 ./Resources/restoreppp
echo OK

echo -n "        chmod on $LOGON_PATH/Resources/prepareppp to 4755 ... "
chmod 4755 ./Resources/prepareppp
echo OK

echo -n "        chmod on $LOGON_PATH/Resources/pppdown to 4755 ... "
chmod 4755 ./Resources/pppdown
echo OK

exit 0
