File: rhmkboot

package info (click to toggle)
brltty 5.6-10%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 25,224 kB
  • sloc: ansic: 117,871; sh: 6,590; java: 4,785; xml: 3,451; makefile: 1,973; tcl: 1,499; awk: 611; ml: 293; python: 250; lisp: 52
file content (20 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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