#! /bin/sh
# Test the -I option without -r
dd if=test-old of=test-mbr 2>/dev/null
do_install -I target.b -d 0xf0 -t 249 -p 1 -i s -e 3 test-mbr
dd if=test-mbr of=test-new 2>/dev/null
do_install -lI bigdisk.b test-new >test-x
cat <<EOF >test-y
Drive: 0xf0
Default: 1
Timeout: 249/18 seconds
Enabled: 3
Interrupt: Shift
EOF
diff -u test-x test-y

do_cmp target.b test-mbr bs=440 count=1
do_cmp target.b test-mbr bs=4 skip=111 count=17

do_cmp bigdisk.b test-new bs=440 count=1
do_cmp target.b  test-new bs=4 skip=111 count=17

do_cmp test-mbr test-new bs=4 skip=110 count=1

# Test -k option
do_install -k test-mbr
do_cmp target.b test-mbr bs=440 count=1
do_cmp target.b test-mbr bs=4 skip=111 count=17
do_cmp test-new test-mbr bs=4 skip=110 count=1

: Done
