#!/bin/bash
#
# post install fixes (release independent)

. ${TOOLKIT}-functions.sh

##set -e	# exit on errors


#---------------------------------------------------------------------
# boot logging enanched
#---------------------------------------------------------------------
#
##target="/etc/lsb-base-logging.sh"
##file=$(filepath lsb-base-logging.sh) && {
	##installfile $file $target root:root 644
##}

tdir="/lib/lsb/init-functions.d"
fname="30-ku-logging"

file=$(filepath $fname) && {
	installfile $file $tdir/ root:root 644
}


# if-up/if-down procedures (see desc.txt)
#
for script in ntpdate mountnfs
do
	for dir in if-down.d if-post-down.d if-pre-up.d if-up.d
	do
		file="/etc/network/$dir/$script"
		[ -f $file ] && {
			echo "  removing $file"
			rm -f $file
		}
	done
done

exit 0
