/[d-i]/trunk/installer/build/ramdisk-size-subst
ViewVC logotype

Contents of /trunk/installer/build/ramdisk-size-subst

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11853 - (show annotations) (download)
Wed Mar 24 03:55:11 2004 UTC (9 years, 1 month ago) by joeyh
File size: 373 byte(s)
automatic ramdisk_size generation for i386
1 #!/bin/sh
2 # Given a ramdisk filename in $1, and a syslinux or other config file on
3 # stdin, substitutes ${RAMDISK_SIZE} in the input with an appropriave
4 # ramdisk_size value for the given initrd.
5 set -e
6 # expr's round down is ok, I think; ext2 disks are a multiple of 1024 bytes
7 ramdisk_size=$(expr $(zcat "$1" | wc --bytes) / 1024)
8 sed s/'${RAMDISK_SIZE}'/$ramdisk_size/g

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5