# Modify inittab for NetworkStation
#
# command example
#    awk -finittab_awk  -vREPLACE="rc.sysinit" -vBY="rc.sysinit.IBM_NS.sboot"  inittab.org > inittab
# Replaces  "rc.sysinit" to "rc_sysinit.IBM_NS.sboot"
# comments out tty 2 to 6

BEGIN {printf  ("# Modified for IBM NS Linux Client - replace %s by %s\n", REPLACE, BY);
       printf  ("#                                    and turn OFF tty 2 to 6\n")
      }

{ gsub(REPLACE, BY); 
  gsub("3:2", "# 3:2"); 	
  gsub("4:2", "# 4:2"); 	
  gsub("5:2", "# 5:2"); 	
  gsub("6:2", "# 6:2"); 	
  print $0 } 
