#
# ident "@(#)postinstall	1.9	97/12/15 Sun Microsystems"
#
#
rootusr=$BASEDIR/etc/init.d/rootusr

grep SKIP_NOCHECK $rootusr >/dev/null 2>/dev/null

if [ $? -eq 0 ]
then
	echo "## Removing older SKIP from system boot script..."
	cat $rootusr | \
	awk '
		BEGIN { x = 0 }
		
		/\/sbin\/ifconfig.*plumb/ {
			x = 1;
			print;
		}
		
		/if test -n \"\$addr\"/ {
			x = 0;
		}
		
		(x == 0) {print}
		END { }
	' > /tmp/rootusr.$$
	echo "## Done ##"

	cp /tmp/rootusr.$$ $rootusr

	exit 0
fi
