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.

24 lines
1.1 KiB

  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. sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-ssh-server.yang -p 600
  5. sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-tls-server.yang -p 600
  6. sysrepoctl --install --yang=/etc/sysrepo/yang/iana-crypt-hash.yang -p 600
  7. sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-x509-cert-to-name.yang -p 600
  8. sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf-server.yang -o root:root -p 600
  9. sysrepoctl -m ietf-netconf-server -e listen
  10. sysrepoctl -m ietf-netconf-server -e ssh-listen
  11. sysrepoctl -m ietf-netconf-server -e tls-listen
  12. sysrepoctl -m ietf-netconf-server -e call-home
  13. sysrepoctl -m ietf-netconf-server -e ssh-call-home
  14. sysrepoctl -m ietf-netconf-server -e tls-call-home
  15. sysrepocfg -d startup -i /usr/share/netopeer2-server/stock_config.xml ietf-netconf-server
  16. rm /usr/share/netopeer2-server/stock_config.xml
  17. sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-system.yang -o root:root -p 600
  18. sysrepoctl -m ietf-system -e authentication
  19. sysrepoctl -m ietf-system -e local-users
  20. fi
  21. exit 0