File: update-configlets

package info (click to toggle)
configlet 1.8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,044 kB
  • ctags: 211
  • sloc: python: 1,417; xml: 709; makefile: 139; sh: 44
file content (25 lines) | stat: -rwxr-xr-x 729 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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