mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-03 18:10:07 +09:00
Merge pull request #27 from xtaran/master
Make dependency on triggerhappy optional
This commit is contained in:
commit
6c0aa41c79
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
raspi-config (20160429) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* Downgrade hard dependency on triggerhappy to recommendation.
|
||||||
|
+ init script: Check if thd is present before using it.
|
||||||
|
|
||||||
|
-- Axel Beckert <abe@debian.org> Thu, 05 May 2016 20:57:55 +0200
|
||||||
|
|
||||||
raspi-config (20160428) jessie; urgency=medium
|
raspi-config (20160428) jessie; urgency=medium
|
||||||
|
|
||||||
* [Simon Long]
|
* [Simon Long]
|
||||||
|
3
debian/control
vendored
3
debian/control
vendored
@ -9,6 +9,7 @@ Vcs-Browser: https://github.com/RPi-Distro/raspi-config
|
|||||||
|
|
||||||
Package: raspi-config
|
Package: raspi-config
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, whiptail, parted, lua5.1, triggerhappy, alsa-utils
|
Depends: ${misc:Depends}, whiptail, parted, lua5.1, alsa-utils
|
||||||
|
Recommends: triggerhappy
|
||||||
Description: Raspberry Pi configuration tool
|
Description: Raspberry Pi configuration tool
|
||||||
A simple configuration tool for common Raspberry Pi administrative tasks
|
A simple configuration tool for common Raspberry Pi administrative tasks
|
||||||
|
3
debian/raspi-config.init
vendored
3
debian/raspi-config.init
vendored
@ -14,8 +14,7 @@
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
log_daemon_msg "Checking if shift key is held down"
|
log_daemon_msg "Checking if shift key is held down"
|
||||||
timeout 1 thd --dump /dev/input/event* | grep -q "LEFTSHIFT\|RIGHTSHIFT"
|
if [ -x /usr/sbin/thd ] && timeout 1 thd --dump /dev/input/event* | grep -q "LEFTSHIFT\|RIGHTSHIFT"; then
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
printf " Yes. Not enabling ondemand scaling governor"
|
printf " Yes. Not enabling ondemand scaling governor"
|
||||||
log_end_msg 0
|
log_end_msg 0
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user