busybox: Fix error in firstboot script
This commit is contained in:
parent
fd67e20064
commit
9b52abc57c
@ -75,7 +75,7 @@ function generate_hostname() {
|
|||||||
elif [ $idx = 30 ] ; then
|
elif [ $idx = 30 ] ; then
|
||||||
res=8
|
res=8
|
||||||
elif [ $idx = 31 ] ; then
|
elif [ $idx = 31 ] ; then
|
||||||
res=8
|
res=9
|
||||||
fi
|
fi
|
||||||
basex="$basex${res}"
|
basex="$basex${res}"
|
||||||
done
|
done
|
||||||
@ -90,7 +90,7 @@ function generate_hostname() {
|
|||||||
|
|
||||||
if [ $old_hostname = raspberrypi4-64 ]
|
if [ $old_hostname = raspberrypi4-64 ]
|
||||||
then
|
then
|
||||||
new_hostname=rpi3-$basex
|
new_hostname=rpi4-$basex
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $new_hostname > /etc/hostname
|
echo $new_hostname > /etc/hostname
|
||||||
|
Loading…
Reference in New Issue
Block a user