#!/bin/bash
#
# Script to install Global LogIn item

MacVer='sw_vers -productVersion'
MacVer=${MacVer:0:4} #we are only interest in first four letter of the version. (at least for now)

if [ -e /System/Library/Extensions/ONEPlugIn.bundle/Contents/ONEPopUp.app ]; then
	/System/Library/Extensions/ONEPlugIn.bundle/Contents/ONEPopUp.app/Contents/MacOS/LogInItem global remove /System/Library/Extensions/ONEPlugIn.bundle/Contents/ONEPopUp.app
	/System/Library/Extensions/ONEPlugIn.bundle/Contents/ONEPopUp.app/Contents/MacOS/LogInItem global add /System/Library/Extensions/ONEPlugIn.bundle/Contents/ONEPopUp.app
fi	
