# 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:2345", "# 3:2345"); 	
  gsub("4:2345", "# 4:2345"); 	
  gsub("5:2345", "# 5:2345"); 	
  gsub("6:2345", "# 6:2345"); 	
  print $0 } 
