Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 447546 | Differences between
and this patch

Collapse All | Expand All

(-)xdm.initd-9 (-2 / +2 lines)
Lines 173-179 stop() { Link Here
173
173
174
	retval=0
174
	retval=0
175
	if [ -t 0 ]; then
175
	if [ -t 0 ]; then
176
		if type fgconsole >/dev/null 2>&1; then
176
		if fgconsole -V >/dev/null 2>&1; then
177
			curvt=$(fgconsole 2>/dev/null)
177
			curvt=$(fgconsole 2>/dev/null)
178
		else
178
		else
179
			curvt=$(tty)
179
			curvt=$(tty)
Lines 202-208 stop() { Link Here
202
202
203
	# switch back to original vt
203
	# switch back to original vt
204
	if [ -n "${curvt}" ]; then
204
	if [ -n "${curvt}" ]; then
205
		if type chvt >/dev/null 2>&1; then
205
		if chvt -V >/dev/null 2>&1; then
206
			chvt "${curvt}"
206
			chvt "${curvt}"
207
		else
207
		else
208
			vidcontrol -s "$((curvt + 1))"
208
			vidcontrol -s "$((curvt + 1))"

Return to bug 447546