packages/net/netopeer2/files/netopeer2-keystored.default
Mislav Novakovic 7250dc59cf add netopeer2
Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
2017-05-11 19:46:58 +02:00

11 lines
383 B
Bash

#!/bin/sh
# Warning, problems can occur if the device restarts in the middle of this uci-default script
if [ -x /bin/sysrepoctl ]; then
sysrepoctl --install --yang=/etc/sysrepo/yang/ietf-keystore.yang -o root:root -p 600
sysrepocfg -d startup -i /usr/share/netopeer2-keystored/stock_key_config.xml ietf-keystore
rm /usr/share/netopeer2-keystored/stock_key_config.xml
fi
exit 0