blob: 20e90de4acd0851abc1f19801de31fe8a533cb04 [file] [log] [blame] [edit]
#!/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