master-thesis/bin/bind-mount.sh

16 lines
639 B
Bash
Raw Normal View History

2019-07-23 11:15:05 +00:00
#!/bin/sh
2019-07-23 11:33:00 +00:00
set -x
2019-07-23 11:15:05 +00:00
# Remove possible symlinks
rm -f ~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src
rm -f ~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4
2019-07-23 11:31:19 +00:00
mkdir -p ~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/
2019-07-23 11:15:05 +00:00
sudo mount --bind ~/master-thesis/netpfga/minip4/ \
~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/
2019-07-23 11:31:19 +00:00
mkdir -p ~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src
2019-07-23 11:15:05 +00:00
sudo mount --bind ~nico/master-thesis/p4src/ \
~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src