summaryrefslogtreecommitdiff
path: root/rc/bin/inst/bootplan9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-12-06 06:35:36 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2012-12-06 06:35:36 +0100
commitb929f24b929f1c2452d12d9a6987d5485c4a4ed0 (patch)
treeef90aa9d941adb64e37cdba2107de4530e362a7d /rc/bin/inst/bootplan9
parentc3105131feb2344f64ae5169df3b024ecdbe814c (diff)
inst: remove broken winnt boot setup
Diffstat (limited to 'rc/bin/inst/bootplan9')
-rwxr-xr-xrc/bin/inst/bootplan945
1 files changed, 20 insertions, 25 deletions
diff --git a/rc/bin/inst/bootplan9 b/rc/bin/inst/bootplan9
index 8e4ca0bc8..3f4820f6b 100755
--- a/rc/bin/inst/bootplan9
+++ b/rc/bin/inst/bootplan9
@@ -7,17 +7,6 @@ if(! ~ $#p9offset 1) {
exit bad
}
-if(test $p9offset -gt 4128695) { # 65536 * 63 - 10
- echo
- echo 'Your Plan 9 partition is more than 2GB into your disk,'
- echo 'and the master boot records used by Windows 9x/ME'
- echo 'cannot access it (and thus cannot boot it).'
- echo
- echo 'You can install the Plan 9 master boot record, which can load'
- echo 'partitions far into the disk.'
- echo
-}
-
echo 'If you use the Windows NT/2000/XP master boot record'
echo 'or a master boot record from a Unix clone (e.g., LILO or'
echo 'FreeBSD bootmgr), it is probably safe to continue using'
@@ -31,19 +20,25 @@ case y
disk/mbr -m /386/mbr /dev/$disk/data
}
-log Setting Plan 9 partition active.
-p9part=`{disk/fdisk /dev/$disk/data >[2]/dev/null </dev/null |
+prompt 'Mark the Plan 9 partition active' y n
+switch($rd) {
+case n
+ ;
+case y
+ p9part=`{disk/fdisk /dev/$disk/data >[2]/dev/null </dev/null |
grep PLAN9 | sed 1q | sed 's/ *(p.) .*/\1/'}
-if(~ $#p9part 0){
- echo 'You have no Plan 9 partitions (How could this happen?)' >[1=2]
- exit 'no plan 9 partition found'
-}
-p9part=$p9part(1)
-{ echo 'A '^$p9part; echo w } | disk/fdisk /dev/$disk/data >[2]/dev/null >/dev/null
-x=$status
-if(~ $x '' '|'){
- echo
- echo 'The Plan 9 partition is now marked as active.'
- exit ''
+ if(~ $#p9part 0){
+ echo 'You have no Plan 9 partitions (How could this happen?)' >[1=2]
+ exit 'no plan 9 partition found'
+ }
+ p9part=$p9part(1)
+ { echo 'A '^$p9part; echo w } | disk/fdisk /dev/$disk/data >[2]/dev/null >/dev/null
+ x=$status
+ if(~ $x '' '|'){
+ echo
+ echo 'The Plan 9 partition is now marked as active.'
+ exit ''
+ }
+ exit $x
}
-exit $x
+exit ''