Set unicode mode immediately at boot without consolefont
X-Gentoo-Bug: 354793 X-Gentoo-Bug-URL: http://bugs.gentoo.org/354793 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
		
				
					committed by
					
						
						Anthony G. Basile
					
				
			
			
				
	
			
			
			
						parent
						
							35d38c3561
						
					
				
				
					commit
					bae0a693a9
				
			@@ -61,12 +61,6 @@ start()
 | 
			
		||||
		done
 | 
			
		||||
		cp "$font" "$RC_LIBEXECDIR"/console
 | 
			
		||||
		echo "${font##*/}" >"$RC_LIBEXECDIR"/console/font
 | 
			
		||||
		if yesno ${unicode:-${UNICODE}}; then
 | 
			
		||||
			echo "" > "$RC_LIBEXECDIR"/console/unicode
 | 
			
		||||
		else
 | 
			
		||||
			rm -f "$RC_LIBEXECDIR"/console/unicode
 | 
			
		||||
		fi
 | 
			
		||||
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	return $retval
 | 
			
		||||
 
 | 
			
		||||
@@ -31,5 +31,16 @@ start()
 | 
			
		||||
		printf "\033%s" "$termencoding" >$ttydev$n
 | 
			
		||||
		n=$(($n + 1))
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
	# Save the encoding for use immediately at boot
 | 
			
		||||
	if [ -w "$RC_LIBEXECDIR" ]; then
 | 
			
		||||
		mkdir -p "$RC_LIBEXECDIR"/console
 | 
			
		||||
		if yesno ${unicode:-${UNICODE}}; then
 | 
			
		||||
			echo "" > "$RC_LIBEXECDIR"/console/unicode
 | 
			
		||||
		else
 | 
			
		||||
			rm -f "$RC_LIBEXECDIR"/console/unicode
 | 
			
		||||
		fi
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	eend 0
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user