Plan 9 from Bell Labs’s /usr/web/sources/plan9/rc/bin/pc/bootfloppy

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

if(~ $#* 0 1) {
	echo 'usage: bootfloppy /dev/fd0disk plan9.ini [files...]'>[1=2]
	exit usage
}

if(! test -f $2) {
	echo $2 does not exist >[1=2]
	exit noplan9.ini
}

disk=$1
ini=$2
shift 
shift

mkdir /tmp/bootfloppy.$pid
cp $ini /tmp/bootfloppy.$pid/plan9.ini
dd -bs 512 -count 1 < /dev/zero >/tmp/bootfloppy.$pid/plan9.nvr
disk/format -b /386/pbs -f -d $disk /386/9load /tmp/bootfloppy.$pid/* $*
rm -rf /tmp/bootfloppy.$pid

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.