File: inst-7

package info (click to toggle)
mbr 1.1.5-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 384 kB
  • ctags: 293
  • sloc: ansic: 2,151; sh: 762; makefile: 116
file content (37 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (8)
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
29
30
31
32
33
34
35
36
37
#! /bin/sh

# BUG: running install-mbr -t 20 --list /dev/hda changes the mbr,
# while running install-mbr -y --list /dev/hda doesn't)

dd if=test-old of=test-mbr 2>/dev/null

do_install test-mbr
do_install -t 20 --list test-mbr >/dev/null
do_install --list test-mbr >test-y
cat <<EOF >test-x
Version: 2
Compatible: 2
Y2K-Fix: Disabled
Drive: 0x80
Default: D
Timeout: 20/18 seconds
Enabled: F A
Interrupt: Shift Key
EOF
diff -u test-x test-y

do_install -y --list test-mbr >/dev/null
do_install --list test-mbr >test-y
cat <<EOF >test-x
Version: 2
Compatible: 2
Y2K-Fix: Enabled
Drive: 0x80
Default: D
Timeout: 20/18 seconds
Enabled: F A
Interrupt: Shift Key
EOF
diff -u test-x test-y

: Done