mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 18:03:06 +02:00
partresize: check for apu only if dmi is present
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -36,12 +36,14 @@ case "${1}" in
|
||||
if [ ! "$(grep "console=ttyS0" /proc/cmdline)" == "" ]; then
|
||||
scon="on";
|
||||
fi
|
||||
IFS= read -r DMI_PRODUCT_NAME < /sys/class/dmi/id/product_name;
|
||||
case ${DMI_PRODUCT_NAME} in
|
||||
APU|apu[1-4]|PC\ Engines\ apu[1-4] )
|
||||
scon="on";
|
||||
;;
|
||||
esac
|
||||
if [ -e /sys/class/dmi/id/product_name ]; then
|
||||
IFS= read -r DMI_PRODUCT_NAME < /sys/class/dmi/id/product_name;
|
||||
case ${DMI_PRODUCT_NAME} in
|
||||
APU|apu[1-4]|PC\ Engines\ apu[1-4] )
|
||||
scon="on";
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Enable the serial console on all systems on Azure
|
||||
if running_on_azure; then
|
||||
|
||||
Reference in New Issue
Block a user