diff --git a/debian/changelog b/debian/changelog index 6816024..de5cedd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 05 May 2016 20:57:55 +0200 + raspi-config (20160428) jessie; urgency=medium * [Simon Long] diff --git a/debian/control b/debian/control index 59540e2..982d988 100644 --- a/debian/control +++ b/debian/control @@ -9,6 +9,7 @@ Vcs-Browser: https://github.com/RPi-Distro/raspi-config Package: raspi-config 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 A simple configuration tool for common Raspberry Pi administrative tasks diff --git a/debian/raspi-config.init b/debian/raspi-config.init index ff616b5..8caecb0 100644 --- a/debian/raspi-config.init +++ b/debian/raspi-config.init @@ -14,8 +14,7 @@ case "$1" in start) log_daemon_msg "Checking if shift key is held down" - timeout 1 thd --dump /dev/input/event* | grep -q "LEFTSHIFT\|RIGHTSHIFT" - if [ $? -eq 0 ]; then + if [ -x /usr/sbin/thd ] && timeout 1 thd --dump /dev/input/event* | grep -q "LEFTSHIFT\|RIGHTSHIFT"; then printf " Yes. Not enabling ondemand scaling governor" log_end_msg 0 else