Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 4155a4966968cfd0a1960af9ca55370e > files > 362

brltty-4.3-3.fc15.i686.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