| OLD | NEW |
| (Empty) | |
| 1 #!/bin/sh |
| 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 NAME=org.chromium.chromoting |
| 8 CONFIG_DIR=/Library/PrivilegedHelperTools |
| 9 HOST_EXE=$CONFIG_DIR/$NAME.me2me_host |
| 10 ENABLED_FILE=$CONFIG_DIR/$NAME.me2me_enabled |
| 11 |
| 12 if [ "$1" = "--disable" ]; then |
| 13 # This script is executed from base::mac::ExecuteWithPrivilegesAndWait(), |
| 14 # which requires the child process to write its PID to stdout before |
| 15 # anythine else. See base/mac/authorization_util.h for details. |
| 16 echo $$ |
| 17 rm -f "$ENABLED_FILE" |
| 18 elif [ "$1" = "--enable" ]; then |
| 19 echo $$ |
| 20 touch "$ENABLED_FILE" |
| 21 else |
| 22 exec "$HOST_EXE" \ |
| 23 --auth-config="$CONFIG_DIR/$NAME.json" \ |
| 24 --host-config="$CONFIG_DIR/$NAME.json" |
| 25 fi |
| OLD | NEW |