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.

32 lines
971 B

  1. #!/bin/sh
  2. # Warning, problems can occur if the device restarts in the middle of this uci-default script
  3. if [ -x /bin/sysrepoctl ]; then
  4. match=$(sysrepoctl -l | grep "ietf-netconf-acm\ ")
  5. if [ ! "$match" ]; then
  6. sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf-acm@2012-02-22.yang -p 644
  7. fi
  8. match=$(sysrepoctl -l | grep "ietf-netconf-notifications\ ")
  9. if [ ! "$match" ]; then
  10. sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf-notifications.yang -p 600
  11. fi
  12. match=$(sysrepoctl -l | grep "nc-notifications\ ")
  13. if [ ! "$match" ]; then
  14. sysrepoctl --install --yang=/etc/sysrepo/yang/nc-notifications.yang -p 666
  15. fi
  16. match=$(sysrepoctl -l | grep "notifications\ ")
  17. if [ ! "$match" ]; then
  18. sysrepoctl --install --yang=/etc/sysrepo/yang/notifications.yang -p 666
  19. fi
  20. match=$(sysrepoctl -l | grep "ietf-netconf\ ")
  21. if [ ! "$match" ]; then
  22. sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf@2011-06-01.yang -p 600
  23. fi
  24. fi
  25. exit 0