| description "NFD Autoreg Server" |
| author "Alexander Afanasyev <alexander.afanasyev@ucla.edu>" |
| ON_DEMAND_FACES_PREFIXES="" |
| if [ -f /etc/default/nfd-autoreg ]; then |
| . /etc/default/nfd-autoreg |
| if [ "$BLACKLIST" != "" ]; then |
| blacklist=`for i in $BLACKLIST; do echo -n "-b $i "; done` |
| if [ "$WHITELIST" != "" ]; then |
| whitelist=`for i in $WHITELIST; do echo -n "-w $i "; done` |
| if [ "$ALL_FACES_PREFIXES" != "" ]; then |
| all_prefixes=`for i in $ALL_FACES_PREFIXES; do echo -n "--all-faces-prefix $i "; done` |
| if [ "$ON_DEMAND_FACES_PREFIXES" != "" ]; then |
| on_demand_prefixes=`for i in $ON_DEMAND_FACES_PREFIXES; do echo -n "--prefix $i "; done` |
| export HOME=/var/lib/ndn/nfd-autoreg |
| exec /usr/bin/nfd-autoreg $blacklist $whitelist $on_demand_prefixes $all_prefixes $FLAGS |