-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #380 from hifiberry/development
Release 20220726
- Loading branch information
Showing
25 changed files
with
381 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
IP=$2 | ||
HOST=$1 | ||
if [ "$HOST" == "" ]; then | ||
echo "start with $0 hostname ip" | ||
exit 1 | ||
fi | ||
|
||
[[ $IP =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] && MATCH=1 | ||
if [ "$MATCH" != "1" ]; then | ||
echo "start with $0 hostname ip" | ||
exit 1 | ||
fi | ||
|
||
grep "$IP $HOST" /etc/hosts >/dev/null | ||
if [ "$?" == "0" ]; then | ||
# entry already exists | ||
exit 0 | ||
fi | ||
|
||
cat /etc/hosts | grep -v ^$IP > /tmp/hosts | ||
echo "$IP $HOST" >> /tmp/hosts | ||
mv /tmp/hosts /etc/hosts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,4 @@ | |
/custom | ||
/opt/wisa/etc/room.cfg | ||
/etc/modprobe.d/snd_soc_core_disable_pm.conf | ||
/etc/rc_keymaps/keymap.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
config BR2_PACKAGE_IR_REMOTE | ||
bool "IR Remote" | ||
help | ||
"Control HiFiBerryOS using an IR remote control" | ||
depends on BR2_PACKAGE_CONFIGTXT | ||
depends on BR2_PACKAGE_COPY_OVERLAYS | ||
depends on BR2_PACKAGE_HIFIBERRY_UPDATER | ||
select BR2_PACKAGE_LIBV4L | ||
select BR2_PACKAGE_LIBV4L_UTILS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
################################################################################ | ||
# | ||
# ir-remote | ||
# | ||
################################################################################ | ||
|
||
IR_REMOTE_INSTALL_TARGET = YES | ||
IR_REMOTE_DEPENDENCIES = libv4l | ||
|
||
define IR_REMOTE_INSTALL_TARGET_CMDS | ||
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_HIFIBERRY_PATH)/package/ir-remote/keymap.toml \ | ||
$(TARGET_DIR)/etc/rc_keymaps/keymap.toml | ||
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_HIFIBERRY_PATH)/package/ir-remote/ir.service \ | ||
$(TARGET_DIR)/lib/systemd/system/ir.service | ||
endef | ||
|
||
$(eval $(generic-package)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=Setup ir-keytable | ||
After=hifiberry.target | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/bin/ir-keytable --write=/etc/rc_keymaps/keymap.toml -c | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[[protocols]] | ||
name = "rc6_0" | ||
protocol = "rc6" | ||
variant = "rc6_0" | ||
[protocols.scancodes] | ||
0x0d = "KEY_MUTE" | ||
0x10 = "KEY_VOLUMEUP" | ||
0x11 = "KEY_VOLUMEDOWN" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.