Skip to content

Commit

Permalink
Fixed wmbus configure script
Browse files Browse the repository at this point in the history
  • Loading branch information
jbreich committed Sep 29, 2014
1 parent 35f71c3 commit 11f6992
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -3,7 +3,7 @@ sed -i -e "s|<str name=\"w_coapaddr_r\" val=\"[^\"]*\"/>|<str name=\"w_coapaddr_
sed -i -e "s|<str name=\"w_coapport_r\" val=\"[^\"]*\"/>|<str name=\"w_coapport_r\" val=\"$GSCL_COAP_PORT\"/>|" $ROOTACT/usr/etc/wmbus/spvconfig.xml
sed -i -e "s|<str name=\"w_tpkdev\" val=\"[^\"]*\"/>|<str name=\"w_tpkdev\" val=\"$TPK_DEV_URI\"/>|" $ROOTACT/usr/etc/wmbus/spvconfig.xml
sed -i -e "s|<str name=\"w_nsclbaseuri\" val=\"[^\"]*\"/>|<str name=\"w_nsclbaseuri\" val=\"$NSCL_URI\"/>|" $ROOTACT/usr/etc/wmbus/spvconfig.xml
if [ -n "$ONG_NAME" ]; thenl
if [ -n "$ONG_NAME" ]; then
if [[ $(cat $ROOTACT/usr/etc/wmbus/spvconfig.xml) =~ w_boxname ]]; then
sed -i -e "s|<str name=\"w_boxname\" val=\"[^\"]*\"/>|<str name=\"w_boxname\" val=\"$ONG_NAME\"/>\n|" $ROOTACT/usr/etc/wmbus/spvconfig.xml
else
Expand Down

0 comments on commit 11f6992

Please sign in to comment.