home *** CD-ROM | disk | FTP | other *** search
- #!/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
-