xref: /OK3568_Linux_fs/yocto/scripts/oe-gnome-terminal-phonehome (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#!/bin/sh
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun# Gnome terminal won't tell us which PID a given command is run as
6*4882a593Smuzhiyun# or allow a single instance so we can't tell when it completes.
7*4882a593Smuzhiyun# This allows us to figure out the PID of the target so we can tell
8*4882a593Smuzhiyun# when its done.
9*4882a593Smuzhiyun#
10*4882a593Smuzhiyunecho $$ > $1
11*4882a593Smuzhiyunshift
12*4882a593Smuzhiyunexec $@
13