|
@ -3,30 +3,36 @@ |
|
|
# Warning, problems can occur if the device restarts in the middle of this uci-default script |
|
|
# Warning, problems can occur if the device restarts in the middle of this uci-default script |
|
|
|
|
|
|
|
|
if [ -x /bin/sysrepoctl ]; then |
|
|
if [ -x /bin/sysrepoctl ]; then |
|
|
match=$(sysrepoctl -l | grep "ietf-netconf-acm ") |
|
|
|
|
|
|
|
|
match=$(sysrepoctl -l | grep "notifications ") |
|
|
if [ ! "$match" ]; then |
|
|
if [ ! "$match" ]; then |
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf-acm@2012-02-22.yang -p 644 |
|
|
|
|
|
|
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/notifications@2008-07-14.yang -p 666 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
match=$(sysrepoctl -l | grep "ietf-netconf-notifications ") |
|
|
|
|
|
|
|
|
match=$(sysrepoctl -l | grep "nc-notifications ") |
|
|
if [ ! "$match" ]; then |
|
|
if [ ! "$match" ]; then |
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf-notifications@2012-02-06..yang -p 600 |
|
|
|
|
|
|
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/nc-notifications@2008-07-14.yang -p 666 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
match=$(sysrepoctl -l | grep "nc-notifications ") |
|
|
|
|
|
|
|
|
match=$(sysrepoctl -l | grep "ietf-netconf-acm ") |
|
|
if [ ! "$match" ]; then |
|
|
if [ ! "$match" ]; then |
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/nc-notifications@2008-07-14.yang -p 666 |
|
|
|
|
|
|
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf-acm@2012-02-22.yang -p 644 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
match=$(sysrepoctl -l | grep "notifications ") |
|
|
|
|
|
|
|
|
match=$(sysrepoctl -l | grep "ietf-netconf-notifications ") |
|
|
if [ ! "$match" ]; then |
|
|
if [ ! "$match" ]; then |
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/notifications@2008-07-14.yang -p 666 |
|
|
|
|
|
|
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf-notifications@2012-02-06.yang -p 600 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
match=$(sysrepoctl -l | grep "ietf-netconf ") |
|
|
match=$(sysrepoctl -l | grep "ietf-netconf ") |
|
|
if [ ! "$match" ]; then |
|
|
if [ ! "$match" ]; then |
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf@2011-06-01.yang -p 600 |
|
|
sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-netconf@2011-06-01.yang -p 600 |
|
|
fi |
|
|
fi |
|
|
|
|
|
sysrepoctl -m ietf-netconf -e writable-running |
|
|
|
|
|
sysrepoctl -m ietf-netconf -e candidate |
|
|
|
|
|
sysrepoctl -m ietf-netconf -e rollback-on-error |
|
|
|
|
|
sysrepoctl -m ietf-netconf -e validate |
|
|
|
|
|
sysrepoctl -m ietf-netconf -e startup |
|
|
|
|
|
sysrepoctl -m ietf-netconf -e xpath |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
exit 0 |
|
|
exit 0 |