Return to install.md CVS log | Up to [local] / src / distrib / hppa |
File: [local] / src / distrib / hppa / install.md (download)
Revision 1.7, Tue Mar 4 00:36:38 2008 UTC (16 years, 3 months ago) by krw
Redo serial console configuration logic. Smaller, easier to understand. Add serial console handling for alpha, macppc, zaurus. No functional change for i386/amd64. All archs should now have automatic serial console configuration. ok deraadt@ |
# $OpenBSD: install.md,v 1.7 2008/03/04 00:36:38 krw Exp $ # # machine dependent section of installation/upgrade script. # MDTERM=vt100 ARCH=ARCH md_installboot() { echo -n "Installing boot block..." /sbin/disklabel -B $1 echo "done." } # $1 is the disk to check md_checkfordisklabel() { local rval=0 disklabel $1 >/dev/null 2>/tmp/checkfordisklabel if grep "disk label corrupted" /tmp/checkfordisklabel; then rval=2 fi >/dev/null 2>&1 rm -f /tmp/checkfordisklabel return $rval } md_prep_disklabel() { local _disk=$1 md_checkfordisklabel $_disk case $? in 2) echo "WARNING: Label on disk $_disk is corrupted. You will be repairing it.\n" ;; esac disklabel -W $_disk >/dev/null 2>&1 disklabel -f /tmp/fstab.$_disk -E $_disk } md_congrats() { } md_consoleinfo() { }