mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 20:37:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			200 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			200 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| if [ -f /etc/issue ]; then
 | |
| 	for opt in $(cat /proc/cmdline); do
 | |
| 		case "$opt" in
 | |
| 		console=*)
 | |
| 			fulltty=${opt#console=}
 | |
| 			tty=${fulltty%,*}
 | |
| 			cat /etc/issue >> /dev/$tty
 | |
| 		esac
 | |
| 	done
 | |
| fi
 |