#!/bin/rc -e
# update - update disk for booting(8)
fn usage {
echo >[1=2] usage: update disk
exit usage
}
if (~ $#* 0)
usage
kernel=`{awk -F'=' '/^kernel=/{print $NF}' dos/config.txt}
disk/format -d -c 32 -l boot $1/dos README dos/* /arm/$kernel
exit ''
|