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 if [ -x /bin
/sysrepocfg
]; then
32 sysrepocfg
-d startup
-i /usr
/share
/netopeer2-server
/stock_config.xml ietf-netconf-server
33 rm /usr
/share
/netopeer2-server
/stock_config.xml
37 match
=$
(sysrepoctl
-l |
grep "ietf-netconf-monitoring ")
38 if [ ! "$match" ]; then
39 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-netconf-monitoring@
2010-10-04.yang
-o root
:root
-p 600
42 match
=$
(sysrepoctl
-l |
grep "ietf-netconf-with-defaults ")
43 if [ ! "$match" ]; then
44 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-netconf-with-defaults@
2011-06-01.yang
-o root
:root
-p 600
47 match
=$
(sysrepoctl
-l |
grep "ietf-system ")
48 if [ ! "$match" ]; then
49 sysrepoctl
--install --yang=/etc
/sysrepo
/yang
/ietf-system@
2014-08-06.yang
-o root
:root
-p 600
50 sysrepoctl
-m ietf-system
-e authentication
51 sysrepoctl
-m ietf-system
-e local-users