writeimage.sh: use uppercase vars in static_ip.conf

This commit is contained in:
Calin Crisan 2019-03-18 23:23:57 +02:00
parent e13a4fd8c4
commit 8e2734b18d

View File

@ -162,9 +162,9 @@ fi
if [ -n "$IP" ] && [ -n "$GW" ] && [ -n "$DNS" ]; then
msg "setting static IP configuration"
conf=$BOOT/static_ip.conf
echo "static_ip=\"$IP\"" > $conf
echo "static_gw=\"$GW\"" >> $conf
echo "static_dns=\"$DNS\"" >> $conf
echo "STATIC_IP=\"$IP\"" > $conf
echo "STATIC_GW=\"$GW\"" >> $conf
echo "STATIC_DNS=\"$DNS\"" >> $conf
fi
msg "unmounting sdcard"