diff options
| author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-06 06:35:36 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-06 06:35:36 +0100 |
| commit | b929f24b929f1c2452d12d9a6987d5485c4a4ed0 (patch) | |
| tree | ef90aa9d941adb64e37cdba2107de4530e362a7d /rc/bin/inst/bootwinnt | |
| parent | c3105131feb2344f64ae5169df3b024ecdbe814c (diff) | |
| download | plan9front-b929f24b929f1c2452d12d9a6987d5485c4a4ed0.tar.xz | |
inst: remove broken winnt boot setup
Diffstat (limited to 'rc/bin/inst/bootwinnt')
| -rwxr-xr-x | rc/bin/inst/bootwinnt | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/rc/bin/inst/bootwinnt b/rc/bin/inst/bootwinnt deleted file mode 100755 index ee92f5d76..000000000 --- a/rc/bin/inst/bootwinnt +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/rc - -if(! c: || ! test -f /n/c:/boot.ini) { - echo 'Could not find NT''s boot.ini on the first FAT disk.' - exit bad -} - -if(test -f /n/c:/boot.p9) { - echo 'A Plan 9 backup already exists; will not edit boot.ini again.' - exit bad -} - -if(! cp /n/c:/boot.ini /n/c:/boot.p9) { - echo 'Could not back up boot.ini; will not continue.' - exit bad -} - -chmod +w /n/c:/boot.ini - -if(! grep -si '\[operating systems\]' /n/c:/boot.ini) { - echo 'Could not parse boot.ini.' - exit bad -} - -if(grep -si 'Plan 9' /n/c:/boot.ini) { - p9file=`{grep 'Plan 9' /n/c:/boot.ini | sed 1q | sed 's/=.*//'} - if(! ~ $p9file [Cc]:'\'*) { - echo 'Unexpected Plan 9 entry in boot.ini already; not continuing.' - exit bad - } -} - -if not { - p9file='c:\bootsect.p9' - echo 'c:\bootsect.p9 = "Plan 9 from Bell Labs"
' >>/n/c:/boot.ini -} - -p9file=/n/^`{echo $p9file | sed 's!\\!/!g'} - - -if(dd -if /dev/$disk/plan9 -bs 512 -count 1 -of $p9file >/dev/null >[2]/dev/null) { - echo 'Plan 9 added to Windows NT boot menu.' - exit '' -} - -echo 'Error copying Plan 9 boot sector to file.' -exit bad |
