Parent Directory
|
Revision Log
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 |
| Name | Value |
|---|---|
| svn:executable | * |
| ViewVC Help | |
| Powered by ViewVC 1.1.5 |