busybox: Fix error in firstboot script

This commit is contained in:
tkl 2021-12-08 19:55:30 +01:00
parent fd67e20064
commit 9b52abc57c

View File

@ -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