aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-07-27 11:58:12 +0100
committerSam James <sam@gentoo.org>2023-07-27 11:58:24 +0100
commitb44b57129fc4a828e8bf36a34ffe3f078f861b2a (patch)
treed4d91ac63973de8e6651248c5f5cbf035ea3320d
parentworker_modules/gkbuild.sh: fix whitespace (diff)
downloadgenkernel-b44b57129fc4a828e8bf36a34ffe3f078f861b2a.tar.gz
genkernel-b44b57129fc4a828e8bf36a34ffe3f078f861b2a.tar.bz2
genkernel-b44b57129fc4a828e8bf36a34ffe3f078f861b2a.zip
defaults/initrd.scripts: kill off some more `which` stragglers
Followup to 04225e090e9936df6c5a9ddd5a3926d13e0001df. Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--defaults/initrd.scripts8
1 files changed, 4 insertions, 4 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index f8cc861d..3d00a555 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -2791,16 +2791,16 @@ tuxonice_resume() {
if ! grep suspend_noui /proc/cmdline >/dev/null 2>&1
then
- which suspend2ui_text >/dev/null 2>&1 && which suspend2ui_text > "${tuxonice_userui_program}"
- which tuxoniceui_text >/dev/null 2>&1 && which tuxoniceui_text > "${tuxonice_userui_program}"
+ command -v suspend2ui_text >/dev/null 2>&1 && command -v suspend2ui_text > "${tuxonice_userui_program}"
+ command -v tuxoniceui_text >/dev/null 2>&1 && command -v tuxoniceui_text > "${tuxonice_userui_program}"
if [ -n "${splash_theme}" ]
then
ln -s /etc/splash/${splash_theme} /etc/splash/suspend2
ln -s /etc/splash/${splash_theme} /etc/splash/tuxonice
- which suspend2ui_fbsplash >/dev/null 2>&1 && which suspend2ui_fbsplash > "${tuxonice_userui_program}"
- which tuxoniceui_fbsplash >/dev/null 2>&1 && which tuxoniceui_fbsplash > "${tuxonice_userui_program}"
+ command -v suspend2ui_fbsplash >/dev/null 2>&1 && command -v suspend2ui_fbsplash > "${tuxonice_userui_program}"
+ command -v tuxoniceui_fbsplash >/dev/null 2>&1 && command -v tuxoniceui_fbsplash > "${tuxonice_userui_program}"
fi
fi