-
Notifications
You must be signed in to change notification settings - Fork 0
/
t2
executable file
·32 lines (31 loc) · 999 Bytes
/
t2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
##############################################################################
#
# Copyright (c) GeoWorks 1991 -- All Rights Reserved
#
# PROJECT: PC GEOS
# MODULE: target
# FILE: target
# AUTHOR: Falk Rehwagen, Oct 26, 2020
#
# REVISION HISTORY:
# Name Date Description
# ---- ---- -----------
# fr 26/10/20 Initial Revision
#
# DESCRIPTION:
# A script to start the target basebox and optionally
# connect swat.
#
# Usage: target [path] [-swat]
#
# If you give the argument "no", then the things that would be
# removed will be printed, but not removed.
#
# $Id: clean,v 1.18 97/02/12 17:08:40 stevey Exp $
#
###############################################################################
clear
while [ ! -f $LOCAL_ROOT/gbuild/localpc/IPX_STAT.TXT ]; do sleep 1; printf "."; done
IPX_PORT=$(grep "127.0.0.1 from port" $LOCAL_ROOT/gbuild/localpc/IPX_STAT.TXT | perl -e 'my $status = <>; $status =~ m/(\d+)\r/; printf("%04X", $1);')
swat -net 00000000:7F000001${IPX_PORT}:003F