home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
Chip_2004-04_cd1.bin
/
opsys
/
macos
/
isync
/
isync.dmg
/
iSync.pkg
/
Contents
/
Resources
/
postflight-cleanup
< prev
next >
Wrap
Text File
|
2003-07-03
|
1KB
|
58 lines
#!/bin/sh
#echo "entering postflight shell script"
#
# Create the Application support folder for iSync so anybody can write into it.
#
APPSUPPORT="$3/Library/Application Support/"
SYNCSERVICES="SyncService"
# if the directory doesn't exist, create it
if [ ! -d "$APPSUPPORT/$SYNCSERVICES" ]; then
umask 022
/bin/mkdir -p -m 1777 "$APPSUPPORT/$SYNCSERVICES"
fi
# ensure that the owner and permissions on the directory are fine
/usr/sbin/chown root:admin "$APPSUPPORT"
/usr/sbin/chown root:admin "$APPSUPPORT/$SYNCSERVICES"
/bin/chmod 1777 "$APPSUPPORT/$SYNCSERVICES"
#
# The Symbian conduit needs a specific ppp configuration setup to work
#
ETC_PPP_DIR="$3/etc/ppp"
ETC_PPP_PEERS="${ETC_PPP_DIR}/peers"
PPP_OPTION_FILE="${ETC_PPP_DIR}/options"
PPP_MROUTER_FILE="${ETC_PPP_PEERS}/mrouter"
if [ ! -d ${ETC_PPP_DIR} ]; then
/bin/mkdir ${ETC_PPP_DIR}
/usr/sbin/chown root.admin ${ETC_PPP_DIR}
/bin/chmod 755 ${ETC_PPP_DIR}
fi
if [ ! -d ${ETC_PPP_PEERS} ]; then
/bin/mkdir ${ETC_PPP_PEERS}
/usr/sbin/chown root.admin ${ETC_PPP_PEERS}
/bin/chmod 755 ${ETC_PPP_PEERS}
fi
if [ ! -f ${PPP_OPTION_FILE} ]; then
/usr/bin/touch ${PPP_OPTION_FILE}
/usr/sbin/chown root.admin ${PPP_OPTION_FILE}
/bin/chmod 644 ${PPP_OPTION_FILE}
fi
echo "noauth" > ${PPP_MROUTER_FILE}
echo "/dev/tty.mRouter" >> ${PPP_MROUTER_FILE}
/usr/sbin/chown root.admin ${PPP_MROUTER_FILE}
/bin/chmod 644 ${PPP_MROUTER_FILE}
#echo "exiting postflight shell script..."
#echo
exit 0