From 6a5dc33d2ec5d9d0a3f1ca7f53c76052685848e3 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 24 Jul 2019 17:19:30 +0200 Subject: [slx-clock] check for ntpdate in depends() --- builder/modules.d/slx-clock/module-setup.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'builder') diff --git a/builder/modules.d/slx-clock/module-setup.sh b/builder/modules.d/slx-clock/module-setup.sh index 1a9956e3..0c21b032 100755 --- a/builder/modules.d/slx-clock/module-setup.sh +++ b/builder/modules.d/slx-clock/module-setup.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash check() { + if ! hash ntpdate; then + derror "Missing 'ntpdate'. Please install it." + return 1 + fi # Tell dracut that this module should only be included if it is required # explicitly. return 255 -- cgit v1.2.3-55-g7522