chiark / gitweb /
Merge Peter Maydell's changes.
[chiark-utils.git] / backup / bringup
1 #!/bin/sh
2 # Very simple: extract the default runlevel from /etc/inittab
3 # and change to it with telinit.
4
5 runlevel=`sed -ne '/^id:/ s/.*:\([0-9]\):.*/\1/p' /etc/inittab`
6 telinit $runlevel
7 # This switches to virtual console 11, but I don't think I want that -- PMM 
8 #chvt 11