Update package name to cec-utils for Raspberry Pi OS
Change installation instructions from libcec-rpi to cec-utils which is the correct package name for Raspberry Pi OS (Raspbian). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,10 +4,10 @@ Control HDMI-connected devices (TVs, receivers, etc.) from your Raspberry Pi 4 u
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. Install the required CEC library:
|
1. Install the required CEC utilities:
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libcec-rpi
|
sudo apt-get install cec-utils
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Make the script executable (already done):
|
2. Make the script executable (already done):
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# CEC Control Script for Raspberry Pi 4
|
# CEC Control Script for Raspberry Pi 4
|
||||||
# Requires: libcec (cec-client)
|
# Requires: cec-utils
|
||||||
# Install with: sudo apt-get install libcec-rpi
|
# Install with: sudo apt-get install cec-utils
|
||||||
|
|
||||||
CEC_CLIENT="cec-client"
|
CEC_CLIENT="cec-client"
|
||||||
|
|
||||||
# Check if cec-client is installed
|
# Check if cec-client is installed
|
||||||
if ! command -v $CEC_CLIENT &> /dev/null; then
|
if ! command -v $CEC_CLIENT &> /dev/null; then
|
||||||
echo "Error: cec-client not found"
|
echo "Error: cec-client not found"
|
||||||
echo "Install with: sudo apt-get install libcec-rpi"
|
echo "Install with: sudo apt-get install cec-utils"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user