#!/bin/sh echo "############### iot-headless-base.post ################" ######### Execute pkg_initdb if there is no pkgmgr-tool pacakge rpm -qa | grep pkgmgr-tool if [ $? != 0 ] then pkg_initdb --ro fi