From 9b52abc57cd9f807ae1b92ad5f62ad7ce39fbadb Mon Sep 17 00:00:00 2001 From: tkl Date: Wed, 8 Dec 2021 19:55:30 +0100 Subject: [PATCH] busybox: Fix error in firstboot script --- recipes-core/busybox/files/S99firstboot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-core/busybox/files/S99firstboot.sh b/recipes-core/busybox/files/S99firstboot.sh index b9fbcd3..cc68a0d 100644 --- a/recipes-core/busybox/files/S99firstboot.sh +++ b/recipes-core/busybox/files/S99firstboot.sh @@ -75,7 +75,7 @@ function generate_hostname() { elif [ $idx = 30 ] ; then res=8 elif [ $idx = 31 ] ; then - res=8 + res=9 fi basex="$basex${res}" done @@ -90,7 +90,7 @@ function generate_hostname() { if [ $old_hostname = raspberrypi4-64 ] then - new_hostname=rpi3-$basex + new_hostname=rpi4-$basex fi echo $new_hostname > /etc/hostname