Sophie

Sophie

distrib > Fedora > 15 > x86_64 > by-pkgid > bc7dd814ebca8b18e1a081d1ab68fa82 > files > 362

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