cjdns: uci-defaults: fix shell syntax error
[lede-routing/.git] / cjdns / files / cjdns.defaults
index fd48269ad16d02e69d8fefe9cffb28ef348feff9..0624daf7358973f37be071645ebd8ec0a813ef4f 100644 (file)
@@ -18,12 +18,12 @@ EOF
 
   # make sure config is present (might fail for any reason)
   uci get cjdns.cjdns.ipv6 >/dev/null 2>&1
-  if [ $? -ne 0]; then
+  if [ $? -ne 0 ]; then
     exit 1
   fi
 
   # enable auto-peering on ethernet
-  uci show network.lan | grep type=bridge >/dev/null 2>&1
+  uci show network.lan | grep bridge >/dev/null 2>&1
   if [ $? -eq 0 ]; then
     # most routers will set up an ethernet bridge for the lan
     ifname="br-lan"