diff options
author | Ian Campbell <ijc@debian.org> | 2019-01-06 12:05:40 +0000 |
---|---|---|
committer | Ian Campbell <ijc@debian.org> | 2019-01-06 13:42:33 +0000 |
commit | 28f25fdae5579e9a3a3a197702e5e9fa5eb32016 (patch) | |
tree | 8afb9c4b9133e931172fd44a1feb505bedb182e6 | |
parent | d188e371307a590af3a0cf34be6c01d996a44aec (diff) |
Update postinst check for presence of `update-initramfs` to use `which`
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | debian/qcontrol.postinst | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index fb36059..4e113ef 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,9 @@ qcontrol (0.5.6-4) UNRELEASED; urgency=medium https://nthykier.wordpress.com/2019/01/04/debhelper-compat-12-is-now-released/). * Only trigger a udev event if `udevadm` is available. Also ignore any error from `udevadm trigger`. + * Update postinst check for presence of `update-initramfs` to use `which` + rather than a hardcoded path. Resolves lintian warning + "command-with-path-in-maintainer-script". -- Ian Campbell <ijc@debian.org> Sat, 05 Jan 2019 12:24:08 +0000 diff --git a/debian/qcontrol.postinst b/debian/qcontrol.postinst index 1d61037..def99e0 100755 --- a/debian/qcontrol.postinst +++ b/debian/qcontrol.postinst @@ -32,7 +32,7 @@ case "$1" in if which udevadm >/dev/null 2>&1; then udevadm trigger --subsystem-match input --property-match ID_PATH=platform-gpio_keys fi - if [ -x /usr/sbin/update-initramfs ]; then + if which update-initramfs >/dev/null 2>&1; then update-initramfs -u fi ;; |