#****************************************************************************************/
#*                                                                                      */
#*                        SUNIX PCI I/O Build File Node Utility                         */
#*                                                                                      */
#*                                                                                      */
#*                                                                                      */
#*                                                              Version: 1.00           */
#*                                                              Date: 02/24/2006        */
#****************************************************************************************/
#!/bin/bash

echo "Build SUNIX tty file node (ttySNX0 ~ ttySNX31), (cux0 ~ cux31)"

port=0

while [ $port -lt 32 ]
do
	rm -f /dev/ttySNX$port
	rm -f /dev/cux$port
	
  echo /dev/ttySNX$port /dev/cux$port	

  mknod /dev/ttySNX$port c 245 $port
	mknod /dev/cux$port  c 250 $port

	chmod a+wx /dev/ttySNX$port
	chmod a+wx /dev/cux$port
	
	port=`expr $port + 1`
done

