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.

16 lines
505 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-keystore\ ")
  5. if [ ! "$match" ]; then
  6. sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-keystore.yang -o root:root -p 600
  7. if [ -x /bin/sysrepocfg ]; then
  8. sysrepocfg -d startup -i /usr/share/netopeer2-keystored/stock_key_config.xml ietf-keystore
  9. rm /usr/share/netopeer2-keystored/stock_key_config.xml
  10. fi
  11. fi
  12. fi
  13. exit 0