Module Name: src Committed By: christos Date: Sun Jan 13 21:46:03 UTC 2013
Modified Files: src/distrib/utils/embedded/conf: rpi.conf Log Message: use variables for the fdisk command too To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/distrib/utils/embedded/conf/rpi.conf Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/utils/embedded/conf/rpi.conf diff -u src/distrib/utils/embedded/conf/rpi.conf:1.2 src/distrib/utils/embedded/conf/rpi.conf:1.3 --- src/distrib/utils/embedded/conf/rpi.conf:1.2 Sun Jan 13 16:38:45 2013 +++ src/distrib/utils/embedded/conf/rpi.conf Sun Jan 13 16:46:03 2013 @@ -1,4 +1,4 @@ -# $NetBSD: rpi.conf,v 1.2 2013/01/13 21:38:45 christos Exp $ +# $NetBSD: rpi.conf,v 1.3 2013/01/13 21:46:03 christos Exp $ # Raspberry PI customization script used by mkimage # image=$HOME/rpi.img @@ -16,6 +16,7 @@ size=2048 overhead=8 boot=112 init=8 +msdosid=12 tmp=/tmp/rpi.disklabel.$$ @@ -63,7 +64,7 @@ drivedata: 0 e: ${bootsize} ${bootoffset} MSDOS # EOF ${sudo} disklabel -R ${vnddev} ${tmp} - ${sudo} fdisk -f -u -0 -s 12/8192/114688 -F ${image} + ${sudo} fdisk -f -u -0 -s ${msdosid}/${bootoffset}/${bootsize} -F ${image} ${sudo} newfs /dev/r${vnddev}a ${sudo} newfs_msdos /dev/r${vnddev}e ${sudo} mount /dev/${vnddev}a ${mnt}