File: pushbutton.sh

package info (click to toggle)
open-plc-utils 0.0.6%2Bgit20250712.46c3506-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,208 kB
  • sloc: ansic: 60,860; xml: 16,179; sh: 1,216; makefile: 698
file content (36 lines) | stat: -rwxr-xr-x 938 bytes parent folder | download | duplicates (3)
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
33
34
35
36
#!/bin/sh
# file: scripts/pushbutton.sh

# This script illustrates how to use MS_PB_ENC to break and make a
# network for testing purposes;
  

# ====================================================================
# host symbols;
# --------------------------------------------------------------------

. /etc/environment
. ${SCRIPTS}/hardware.sh

# ====================================================================
# leave network;
# --------------------------------------------------------------------

int6k -i ${ETH1} -B 2
int6kwait -i ${ETH1} -rs
int6k -i ${ETH2} -B 2
int6kwait -i${ETH2} -rs
int6k -i ${ETH1} -I
int6k -i ${ETH2} -I

# ====================================================================
# create network;
# --------------------------------------------------------------------

int6k -i ${ETH1} -B 1
int6k -i ${ETH2} -B 1
int6kwait -i ${ETH1} -rs
int6kwait -i ${ETH2} -rs
int6k -i ${ETH1} -I
int6k -i ${ETH2} -I