[v3,3/4] configurehood: Do not suppress uci errors where not necessary

Submitted by Adrian Schmutzler on June 16, 2019, 2:23 p.m.

Details

Message ID 20190616142326.5509-3-freifunk@adrianschmutzler.de
State Accepted
Headers show

Commit Message

Adrian Schmutzler June 16, 2019, 2:23 p.m.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
index 4b85ae46..d5dc2c00 100755
--- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
+++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
@@ -89,7 +89,7 @@  else
 
 			uci -q del "system.@system[0].hood"
 			uci -q del "system.@system[0].hoodid"
-			uci -q commit system
+			uci commit system
 			reload_config
 		
 			sleep 30 # Wait for the config AP, which may be created at the same time as this script has started
@@ -142,9 +142,9 @@  if [ -s "$hoodfiletmp" ]; then
 		fi
 
 		echo "Setting hood name: $hood (ID $hoodid)"
-		uci -q set "system.@system[0].hood=$hood"
-		uci -q set "system.@system[0].hoodid=$hoodid"
-		uci -q commit system
+		uci set "system.@system[0].hood=$hood"
+		uci set "system.@system[0].hoodid=$hoodid"
+		uci commit system
 		reload_config
 
 		for radio in $(wifiListRadio); do

Comments

Fabian Blaese July 3, 2019, 12:03 p.m.
Reviewed-by: Fabian Bläse <fabian@blaese.de>