blob: 03710e85e0cf2c42ae81f8f817e25989564ea88d [file] [log] [blame]
Yi Huang401f7962014-04-20 11:13:36 -07001#!/bin/bash
2workdir=$1
3c_ipaddr=$2
4sudo nfd > $workdir/logs/nfd.log 2>&1 &
5sleep 3
6faceid=$(nfdc create udp4://$c_ipaddr | grep -Po 'FaceId: .*?,' | sed 's/FaceId: //' | sed 's/,//')
7nfdc add-nexthop ndn:/localhop $faceid