--- xdm.orig 2013-05-06 02:50:16.000000000 +0200 +++ xdm 2013-05-07 16:54:37.423752714 +0200 @@ -173,7 +173,7 @@ stop() { retval=0 if [ -t 0 ]; then - if type fgconsole >/dev/null 2>&1; then + if command -v fgconsole >/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 command -v chvt >/dev/null 2>&1; then chvt "${curvt}" else vidcontrol -s "$((curvt + 1))"