:
echo The following LLI drivers are configured:
cd /etc/conf/cf.d
bds="e3A0 e3A1 e3A2 e3A3 e3B0 e3B1 e3B2 e3B3 e3C0 e3C1 e3C2 e3C3 exos0 exos1 exos2 exos3 tok0 tok1 wdn0 wdn1 wdn2 wdn3 emA0 emA1 emA2 emA3 emB0 emB1 emB2 emB3 emC0 emC1 emC2 emC3 emD0 emD1 emD2 emD3"
found=n
for i in $bds
do
	./configure -j $i > /dev/null 2>& 1 && {
		cfg=`awk '{
			if ( substr($1, 1, 1) != "*" ) {
				print $2
			}
		}' ../sdevice.d/$i`
		[ "$cfg" = "Y" ] && {
			[ "$found" = "n" ] && echo "\tBoard\tInterrupt\tIO Addr\t\tRAM Addr"
			found=y
			cfg=`awk '{
				if ( substr($1, 1, 1) != "*" ) {
					v = $6
					if (v == 9)
						v = "2 (9)"
					printf "\t%s\t%s\t\t%s-%s\t\t%s-%s\n",$1,v,$7,$8,$9,$10
				}
			}' ../sdevice.d/$i`
			echo "$cfg"
		}
	}
done
[ "$found" = "n" ] && echo No LLI drivers are currently configured.
echo
[ -f /usr/lib/lli/chains ] && {
	echo "The following LLI chains are configured:"
	found=n
	for i in `cat /usr/lib/lli/chains`
	do
		chain=$i
		base=`echo $chain | sed -e 's/:.*//'`
		up=`echo $chain | sed -e 's/.*://'`
		[ "$up" != "mkdev" ] && up="netconfig ($up)"
		[ "$found" = "n" ] && echo "\tDriver\t\tConfigured under"
		found=y
		echo "\t$base\t\t\t$up"
	done
	[ "$found" = "n" ] && echo No LLI chains are currently configured.
	echo
}
