Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded/conf use variables for the fdisk comm...
details: https://anonhg.NetBSD.org/src/rev/d01ebd6dd764
branches: trunk
changeset: 783967:d01ebd6dd764
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 13 21:46:03 2013 +0000
description:
use variables for the fdisk command too
diffstat:
distrib/utils/embedded/conf/rpi.conf | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 18363d503103 -r d01ebd6dd764 distrib/utils/embedded/conf/rpi.conf
--- a/distrib/utils/embedded/conf/rpi.conf Sun Jan 13 21:38:45 2013 +0000
+++ b/distrib/utils/embedded/conf/rpi.conf Sun Jan 13 21:46:03 2013 +0000
@@ -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 @@
overhead=8
boot=112
init=8
+msdosid=12
tmp=/tmp/rpi.disklabel.$$
@@ -63,7 +64,7 @@
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}
Home |
Main Index |
Thread Index |
Old Index