9 : ${SYSREPOCTL:=sysrepoctl}
10 : ${SYSREPOCFG:=sysrepocfg}
11 : ${SYSREPOCTL_ROOT_PERMS:=-o root:root -p 600}
12 : ${YANG_DIR:=@CMAKE_CURRENT_SOURCE_DIR@/yang}
13 : ${STARTUP_DIR:=@CMAKE_CURRENT_SOURCE_DIR@/yang/startup}
15 is_yang_module_installed() {
18 $SYSREPOCTL -l | grep --count "^$module [^|]*|[^|]*| Installed .*$" > /dev/null
21 uninstall_yang_module() {
24 if ! is_yang_module_installed $module; then
25 echo "- Module $module not installed, skipping..."
27 $SYSREPOCTL -u -m $$module
31 echo "- Uninstalling code-model and microwave-model..."
32 uninstall_yang_module microwave-model,core-model