Skip to content

Commit

Permalink
Fix tc358743 identifier in the /boot/config.txt population (#1617)
Browse files Browse the repository at this point in the history
This fixes a small bug in the tinypilot.postinst that was preventing it
from matching the right line in `/boot/config.txt` to add the
`dtoverlay=tc358743-audio` line.

## Peer testing

To test this bundle run:

```bash
curl \
  --silent \
  --show-error \
  --location \
  https://raw.githubusercontent.com/tiny-pilot/tinypilot/master/scripts/install-bundle | \
  sudo bash -s -- \
    https://output.circle-artifacts.com/output/job/0bcd7da3-9a88-4126-ada8-6a7804e02dfe/artifacts/0/bundler/dist/tinypilot-community-20230901T1500Z-1.9.0-75+03827f4.tgz && \
  sudo reboot
```

<a data-ca-tag
href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1617"><img
src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review
on CodeApprove" /></a>
  • Loading branch information
mtlynch authored Sep 1, 2023
1 parent 5bf0164 commit a7cc8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debian-pkg/debian/tinypilot.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ if grep --silent '^dtoverlay=tc358743$' "${BOOT_CONFIG_PATH}" ; then
# Enable TC358743-audio overlay in /boot/config.txt.
# Note that the tc358743-audio overlay depends on the tc358743 overlay.
sed --in-place --expression '/dtoverlay=tc358743-audio/d' "${BOOT_CONFIG_PATH}"
sed --in-place '/dtoverlay=tc35843/ a dtoverlay=tc358743-audio' "${BOOT_CONFIG_PATH}"
sed --in-place '/dtoverlay=tc358743/ a dtoverlay=tc358743-audio' "${BOOT_CONFIG_PATH}"

# Set GPU memory to 256MB in /boot/config.txt
if grep --silent '^gpu_mem=' "${BOOT_CONFIG_PATH}" ; then
Expand Down

0 comments on commit a7cc8d0

Please sign in to comment.