#!/bin/sh # Very simple: extract the default runlevel from /etc/inittab # and change to it with telinit. runlevel=`sed -ne '/^id:/ s/.*:\([0-9]\):.*/\1/p' /etc/inittab` telinit $runlevel # This switches to virtual console 11, but I don't think I want that -- PMM #chvt 11