File: init.sh

package info (click to toggle)
bochs 2.3-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 14,116 kB
  • ctags: 16,927
  • sloc: cpp: 130,524; ansic: 18,822; sh: 7,922; makefile: 3,836; yacc: 1,056; asm: 463; perl: 381; lex: 280; csh: 3
file content (28 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

mount / -o rw,remount
export PATH=/usr/X11R6/bin:$PATH

while true
do
  echo -n "
 - Run [B]ochs
 - Run [S]hell
 - [R]eboot
Choose an option: "
  read
  case $REPLY in
    B|b)
      startx $(which bochs-bin) -qf /etc/bochs-init/bochsrc
    ;;
    S|s)
      login
    ;;
    R|r)
      sync
      mount / -o ro,remount
      reboot
    ;;
  esac
done