Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 59b3f47e99e547aba91c70985b9f8e68 > files > 335

brltty-4.2-3.fc14.x86_64.rpm

#!/bin/sh

set -e

# Make local mount points
mkdir -p mnt1 mnt2

# Work on a copy of bootdisk image
cp -f boot.img myboot.img
mount myboot.img mnt1 -o loop -t msdos

# Modify syslinux.cfg
cat >cfg <<EOF
label brltty
  kernel vmlinuz
  append root=/dev/fd0 load_ramdisk=1 prompt_ramdisk=1 lang= text devfs=nomount ramdisk_size=9216
EOF
cat mnt1/syslinux.cfg |sed 's/default linux/default brltty/' >>cfg
cp cfg mnt1/syslinux.cfg
umount mnt1