You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
290 B

  1. #!/bin/sh
  2. . /lib/functions.sh
  3. upgrade() {
  4. local section=$1
  5. local name
  6. [ "$section" != "common" ] || return 0
  7. config_get name $section name
  8. if [ -z "$name" ]; then
  9. uci_set frpc "$section" name "$section"
  10. uci_commit frpc
  11. fi
  12. }
  13. config_load frpc
  14. config_foreach upgrade conf
  15. exit 0