Commit 02fab5be authored by Pedro Oliveira's avatar Pedro Oliveira

Clone repository instead of copying from Desktop to netkit

parent 0fa51a5f
rm -rf MulticastRouting/
cp -rf /hosthome/Desktop/pim/ MulticastRouting/
cd MulticastRouting
#pip-3.2 install --index-url=https://pypi.python.org/simple/ -r requirements.txt
cd pim_dm
tcpdump -i eth0 -w /hosthome/Desktop/test_pim/pim/TestResults/Router1_Source.pcap &
tcpdump -i eth1 -w /hosthome/Desktop/test_pim/pim/TestResults/Router1_Router2.pcap &
......
rm -rf MulticastRouting/
cp -rf /hosthome/Desktop/pim/ MulticastRouting/
cd MulticastRouting
#pip-3.2 install --index-url=https://pypi.python.org/simple/ -r requirements.txt
cd pim_dm
python3 Run.py -stop
python3 Run.py -start
......
rm -rf MulticastRouting/
cp -rf /hosthome/Desktop/pim/ MulticastRouting/
cd MulticastRouting
#pip-3.2 install --index-url=https://pypi.python.org/simple/ -r requirements.txt
cd pim_dm
python3 Run.py -stop
python3 Run.py -start
......
rm -rf MulticastRouting/
cp -rf /hosthome/Desktop/pim/ MulticastRouting/
cd MulticastRouting
#pip-3.2 install --index-url=https://pypi.python.org/simple/ -r requirements.txt
cd pim_dm
python3 Run.py -stop
python3 Run.py -start
......
rm -rf MulticastRouting/
cp -rf /hosthome/Desktop/pim/ MulticastRouting/
cd MulticastRouting
#pip-3.2 install --index-url=https://pypi.python.org/simple/ -r requirements.txt
cd pim_dm
python3 Run.py -stop
python3 Run.py -start
......
rm -rf MulticastRouting/
cp -rf /hosthome/Desktop/pim/ MulticastRouting/
cd MulticastRouting
#pip-3.2 install --index-url=https://pypi.python.org/simple/ -r requirements.txt
cd pim_dm
python3 Run.py -stop
python3 Run.py -start
......
rm -rf MulticastRouting/
cp -rf /hosthome/Desktop/pim/ MulticastRouting/
cd MulticastRouting
#pip-3.2 install --index-url=https://pypi.python.org/simple/ -r requirements.txt
cd pim_dm
tcpdump -i eth0 -w /hosthome/Desktop/test_pim/pim/TestResults/Router7_Router5.pcap &
tcpdump -i eth1 -w /hosthome/Desktop/test_pim/pim/TestResults/Router7_Client0.pcap &
......
......@@ -10,6 +10,11 @@ if [ ! -d "netkit-ng" ]; then
tar -xjSf netkit-ng-kernel-i386-K3.2-0.1.3.tar.bz2
fi
if [ ! -d "emulation/shared/root/pim_dm" ]; then
# if project does not exist, clone it
git clone https://github.com/pedrofran12/pim_dm.git emulation/shared/root/pim_dm
fi
export NETKIT_HOME=$(pwd)/netkit-ng
export MANPATH=:$NETKIT_HOME/man
export PATH=$NETKIT_HOME/bin:$PATH
......@@ -22,10 +27,7 @@ if echo $OUTPUT | grep -q "failed"; then
exit
fi
cd ../emulation/
lstart -p
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment