1 2 3 4 5 6 7 8 9
#!/bin/sh if [ "$(uci -q get sentinel.main)" != "main" ]; then uci -q batch <<EOT delete sentinel.main set sentinel.main='main' commit sentinel.main EOT fi