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
|