#!/bin/sh

# update-configlets - cause frontends, etc. to update themselves.
# 
# $Progeny: update-configlets,v 1.6 2002/01/18 06:19:43 dsp Exp $
# 
# This script should be run by the postinst of any package that
# provides any new functionality to the configlet system.  It
# calls all scripts in /etc/configlet.d with whatever parameters
# are passed to this script.  Valid parameters are:
# 
# --update
# --install-all
# --remove-all
# --install <configlet-dir>
# --remove <configlet-dir>
# --reinstall <configlet-dir>
# 
# <configlet-dir> is the directory where a configlet is stored.

if [ `ls /etc/configlet.d | wc -l` -gt 0 ]; then
        for script in /etc/configlet.d/*; do
                $script "$@"
        done
fi
