#!/bin/sh

find /usr/src/ -name '*.noipv6' -print |
while read file; do
	base=`dirname $file`/`basename $file .noipv6`
	if [ -s $base.noipv6 ]; then
		echo mv $base.noipv6 $base
		mv $base.noipv6 $base
	else
		echo rm $base.noipv6 $base 
		rm $base.noipv6 $base 
	fi
done
