#!/bin/sh
i=0
while true; do 
 uci -q del qmp.@gateway[0]
 [ $? -ne 0 ] && break
 i=$(($i+1))
done

uci commit
