~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/arch/s390/config3270.sh

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/arch/s390/config3270.sh (Version linux-6.12-rc7) and /Documentation/arch/m68k/config3270.sh (Version linux-4.13.16)


  1 #!/bin/sh                                         
  2 #                                                 
  3 # config3270 -- Autoconfigure /dev/3270/* and     
  4 #                                                 
  5 #       Usage:                                    
  6 #               config3270                        
  7 #                                                 
  8 #       Output:                                   
  9 #               /tmp/mkdev3270                    
 10 #                                                 
 11 #       Operation:                                
 12 #               1. Run this script                
 13 #               2. Run the script it produces:    
 14 #               3. Issue "telinit q" or reboot    
 15 #                                                 
 16 P=/proc/tty/driver/tty3270                        
 17 ROOT=                                             
 18 D=$ROOT/dev                                       
 19 SUBD=3270                                         
 20 TTY=$SUBD/tty                                     
 21 TUB=$SUBD/tub                                     
 22 SCR=$ROOT/tmp/mkdev3270                           
 23 SCRTMP=$SCR.a                                     
 24 GETTYLINE=:2345:respawn:/sbin/mingetty            
 25 INITTAB=$ROOT/etc/inittab                         
 26 NINITTAB=$ROOT/etc/NEWinittab                     
 27 OINITTAB=$ROOT/etc/OLDinittab                     
 28 ADDNOTE=\\"# Additional mingettys for the 3270    
 29                                                   
 30 if ! ls $P > /dev/null 2>&1; then                 
 31         modprobe tub3270 > /dev/null 2>&1         
 32 fi                                                
 33 ls $P > /dev/null 2>&1 || exit 1                  
 34                                                   
 35 # Initialize two files, one for /dev/3270 comm    
 36 # to replace the /etc/inittab file (old one sa    
 37 echo "#!/bin/sh" > $SCR || exit 1                 
 38 echo " " >> $SCR                                  
 39 echo "# Script built by /sbin/config3270" >> $    
 40 if [ ! -d /dev/dasd ]; then                       
 41         echo rm -rf "$D/$SUBD/*" >> $SCR          
 42 fi                                                
 43 echo "grep -v $TTY $INITTAB > $NINITTAB" > $SC    
 44 echo "echo $ADDNOTE >> $NINITTAB" >> $SCRTMP      
 45 if [ ! -d /dev/dasd ]; then                       
 46         echo mkdir -p $D/$SUBD >> $SCR            
 47 fi                                                
 48                                                   
 49 # Now query the tub3270 driver for 3270 device    
 50 # and add appropriate mknod and mingetty lines    
 51 echo what=config > $P                             
 52 while read devno maj min;do                       
 53         if [ $min = 0 ]; then                     
 54                 fsmaj=$maj                        
 55                 if [ ! -d /dev/dasd ]; then       
 56                         echo mknod $D/$TUB c $    
 57                         echo chmod 666 $D/$TUB    
 58                 fi                                
 59         elif [ $maj = CONSOLE ]; then             
 60                 if [ ! -d /dev/dasd ]; then       
 61                         echo mknod $D/$TUB$dev    
 62                 fi                                
 63         else                                      
 64                 if [ ! -d /dev/dasd ]; then       
 65                         echo mknod $D/$TTY$dev    
 66                         echo mknod $D/$TUB$dev    
 67                 fi                                
 68                 echo "echo t$min$GETTYLINE $TT    
 69         fi                                        
 70 done < $P                                         
 71                                                   
 72 echo mv $INITTAB $OINITTAB >> $SCRTMP || exit     
 73 echo mv $NINITTAB $INITTAB >> $SCRTMP             
 74 cat $SCRTMP >> $SCR                               
 75 rm $SCRTMP                                        
 76 exit 0                                            
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php