--- xdm.initd-9 2012-11-11 01:49:30.000000000 +0000 +++ xdm.initd-9 2012-12-17 03:01:34.926674017 +0000 @@ -173,7 +173,7 @@ stop() { retval=0 if [ -t 0 ]; then - if type fgconsole >/dev/null 2>&1; then + if fgconsole -V >/dev/null 2>&1; then curvt=$(fgconsole 2>/dev/null) else curvt=$(tty) @@ -202,7 +202,7 @@ stop() { # switch back to original vt if [ -n "${curvt}" ]; then - if type chvt >/dev/null 2>&1; then + if chvt -V >/dev/null 2>&1; then chvt "${curvt}" else vidcontrol -s "$((curvt + 1))"