#!/bin/sh UNICONF_ADMIN="ini:/etc/llxcfg/vars/10_llxcfg_setvars" UNICONF_SYSTEM="ini:/var/lib/llxcfg/vars/10_llxcfg_setvars" UNICONF_STATIC='$(find /usr/share/llxcfg/vars/ -xtype f -printf "ini:%p ")' UNICONF_ALL="list:$UNICONF_ADMIN $UNICONF_SYSTEM $UNICONF_STATIC" uniconf_export(){ case "$1" in admin) uniconf_var="$UNICONF_ADMIN" ;; system) uniconf_var="$UNICONF_SYSTEM" ;; static) uniconf_var="list:$UNICONF_STATIC" ;; *) uniconf_var="$UNICONF_ALL" ;; esac echo "export UNICONF=\"$uniconf_var\"" } if [ $# -gt 1 ]; then VAR_TYPE="$1" shift else VAR_TYPE="ALL" fi sed -e "s#_@_EXPORT_UNICONF_@_#$(uniconf_export "$VAR_TYPE")#g" $1