#!/bin/sh

#  enable-screen-sharing.tool
#  Screens Connect
#
#  Created by Luc Vandal on 12-05-23.
#  Copyright (c) 2012 Edovia Inc. All rights reserved.

if [ `sysctl -n kern.osrelease | cut -d . -f 1` -lt 11 ]; then
	sudo sh -c "/bin/echo -n enabled > /private/etc/ScreenSharing.launchd"
else 
	sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
fi

sudo pmset womp 1
