mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-30 16:14:01 +00:00
only use hwclock and gpg if the underlying components exist
This commit is contained in:
parent
70d8bebf71
commit
507c7d6852
@ -36,7 +36,9 @@ if [ -r /etc/motd ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Load the date from the hardware clock, setting it in local time
|
# Load the date from the hardware clock, setting it in local time
|
||||||
hwclock -l -s
|
if [ -r /dev/misc/rtc ]; then
|
||||||
|
hwclock -l -s
|
||||||
|
fi
|
||||||
|
|
||||||
# Read the system configuration parameters
|
# Read the system configuration parameters
|
||||||
. /etc/functions
|
. /etc/functions
|
||||||
@ -57,7 +59,10 @@ fi
|
|||||||
if [ "$CONFIG_LINUXBOOT" = "y" ]; then
|
if [ "$CONFIG_LINUXBOOT" = "y" ]; then
|
||||||
/bin/uefi-init
|
/bin/uefi-init
|
||||||
fi
|
fi
|
||||||
/bin/key-init
|
|
||||||
|
if [ -x /bin/gpg ]; then
|
||||||
|
/bin/key-init
|
||||||
|
fi
|
||||||
|
|
||||||
# Setup recovery serial shell
|
# Setup recovery serial shell
|
||||||
if [ ! -z "$CONFIG_BOOT_RECOVERY_SERIAL" ]; then
|
if [ ! -z "$CONFIG_BOOT_RECOVERY_SERIAL" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user