3 # Warning, problems can occur if the device restarts in the middle of this uci-default script
5 if [ -x /bin
/sysrepoctl
]; then
6 match
=$
(sysrepoctl
-l |
grep "ietf-ssh-server ")
7 if [ ! "$match" ]; then
8 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-ssh-server@
2016-11-02.yang
-p 600
11 match
=$
(sysrepoctl
-l |
grep "ietf-tls-server ")
12 if [ ! "$match" ]; then
13 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-tls-server@
2016-11-02.yang
-p 600
16 match
=$
(sysrepoctl
-l |
grep "iana-crypt-hash ")
17 if [ ! "$match" ]; then
18 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/iana-crypt-hash@
2014-08-06.yang
-p 600
21 match
=$
(sysrepoctl
-l |
grep "ietf-x509-cert-to-name ")
22 if [ ! "$match" ]; then
23 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-x509-cert-to-name@
2014-12-10.yang
-p 600
26 match
=$
(sysrepoctl
-l |
grep "ietf-netconf-server ")
27 if [ ! "$match" ]; then
28 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-netconf-server@
2016-11-02.yang
-o root
:root
-p 600
29 sysrepoctl
-m ietf-netconf-server
-e listen
30 sysrepoctl
-m ietf-netconf-server
-e ssh-listen
31 sysrepoctl
-m ietf-netconf-server
-e tls-listen
32 sysrepoctl
-m ietf-netconf-server
-e call-home
33 sysrepoctl
-m ietf-netconf-server
-e ssh-call-home
34 sysrepoctl
-m ietf-netconf-server
-e tls-call-home
35 sysrepoctl
-m ietf-netconf
-e url
36 if [ -x /bin
/sysrepocfg
]; then
37 sysrepocfg
-f xml
-d startup
-i /usr
/share
/netopeer2-server
/stock_config.xml ietf-netconf-server
38 rm /usr
/share
/netopeer2-server
/stock_config.xml
42 match
=$
(sysrepoctl
-l |
grep "ietf-netconf-monitoring ")
43 if [ ! "$match" ]; then
44 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-netconf-monitoring@
2010-10-04.yang
-o root
:root
-p 600
47 match
=$
(sysrepoctl
-l |
grep "ietf-netconf-with-defaults ")
48 if [ ! "$match" ]; then
49 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-netconf-with-defaults@
2011-06-01.yang
-o root
:root
-p 600
52 match
=$
(sysrepoctl
-l |
grep "ietf-system ")
53 if [ ! "$match" ]; then
54 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-system@
2014-08-06.yang
-o root
:root
-p 600
55 sysrepoctl
-m ietf-system
-e authentication
56 sysrepoctl
-m ietf-system
-e local-users
59 match
=$
(sysrepoctl
-l |
grep "ietf-datastores ")
60 if [ ! "$match" ]; then
61 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-datastores@
2017-08-17.yang
-o root
:root
-p 600
64 match
=$
(sysrepoctl
-l |
grep "ietf-yang-library ")
65 if [ ! "$match" ]; then
66 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-yang-library@
2018-01-17.yang
-o root
:root
-p 600