busybox: Fix error in firstboot script
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user