Junxiao Shi | a59f207 | 2014-04-27 20:52:25 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | FACEURI=$1 | ||||
3 | |||||
Eric Newberry | 7745c1a | 2017-04-20 00:23:05 -0700 | [diff] [blame] | 4 | nfdc face create $FACEURI || exit 1 |
5 | |||||
6 | if ! output=$(nfdc route add ndn:/ $FACEURI) | ||||
Junxiao Shi | a59f207 | 2014-04-27 20:52:25 -0700 | [diff] [blame] | 7 | then |
8 | return 2 | ||||
9 | fi | ||||
10 | |||||
Eric Newberry | 7745c1a | 2017-04-20 00:23:05 -0700 | [diff] [blame] | 11 | output=$(nfdc route add ndn:/localhost/test-out $FACEURI 2>&1) |
Junxiao Shi | a59f207 | 2014-04-27 20:52:25 -0700 | [diff] [blame] | 12 | return 0 |