1#!/bin/sh
2
3set -e
4
5case "${1}" in
6	configure)
7		for fname in mfsmount; do
8			if [ -f /etc/mfs/${fname}.cfg.dist ]; then
9				rm -f /etc/mfs/${fname}.cfg.dist
10			fi
11			if [ -f /etc/mfs/${fname}.cfg.sample -a ! -f /etc/mfs/${fname}.cfg ]; then
12				cp /etc/mfs/${fname}.cfg.sample /etc/mfs/${fname}.cfg
13			fi
14		done
15		;;
16
17	abort-upgrade|abort-remove|abort-deconfigure)
18
19		;;
20
21	*)
22		echo "postinst called with unknown argument \`${1}'" >&2
23		exit 1
24		;;
25esac
26
27#DEBHELPER#
28
29exit 0
30