| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 NAME=org.chromium.chromoting | 7 NAME=org.chromium.chromoting |
| 8 CONFIG_DIR=/Library/PrivilegedHelperTools | 8 CONFIG_DIR=/Library/PrivilegedHelperTools |
| 9 HOST_EXE=$CONFIG_DIR/$NAME.me2me_host.app/Contents/MacOS/remoting_me2me_host | 9 HOST_EXE=$CONFIG_DIR/$NAME.me2me_host.app/Contents/MacOS/remoting_me2me_host |
| 10 ENABLED_FILE=$CONFIG_DIR/$NAME.me2me_enabled | 10 ENABLED_FILE=$CONFIG_DIR/$NAME.me2me_enabled |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 # anythine else. See base/mac/authorization_util.h for details. | 75 # anythine else. See base/mac/authorization_util.h for details. |
| 76 echo $$ | 76 echo $$ |
| 77 rm -f "$ENABLED_FILE" | 77 rm -f "$ENABLED_FILE" |
| 78 elif [[ "$1" = "--enable" ]]; then | 78 elif [[ "$1" = "--enable" ]]; then |
| 79 echo $$ | 79 echo $$ |
| 80 cat > "$CONFIG_FILE" | 80 cat > "$CONFIG_FILE" |
| 81 touch "$ENABLED_FILE" | 81 touch "$ENABLED_FILE" |
| 82 elif [[ "$1" = "--save-config" ]]; then | 82 elif [[ "$1" = "--save-config" ]]; then |
| 83 echo $$ | 83 echo $$ |
| 84 cat > "$CONFIG_FILE" | 84 cat > "$CONFIG_FILE" |
| 85 elif [[ "$1" = "--run-from-launchd" ]]; then |
| 86 run_host |
| 85 else | 87 else |
| 86 run_host | 88 echo $$ |
| 89 exit 1 |
| 87 fi | 90 fi |
| OLD | NEW |