#!/bin/sh DEST_PATH="/etc/polipo" CONF_PATH="proxy-lite" VAR_LIST="PROXY_HTTP_PORT PROXY_HOST" eval "$(llxcfg-showvars $VAR_LIST)" [ "$PROXY_HTTP_PORT" -a "$PROXY_HOST" ] || exit 1 for f in $(llxcfg-config list "$CONF_PATH") ; do llxcfg-config read "$CONF_PATH/$f" | skel-install -t "$DEST_PATH/$f" done