Copy wpa_supplicant.conf from NOOBS

This commit is contained in:
Serge Schneider 2017-03-06 11:49:13 +00:00
parent b0be14afdf
commit 7748ed0df1

View file

@ -24,6 +24,10 @@ if [ -e /mnt/ssh.txt ]; then
cp /mnt/ssh.txt /tmp/1/ cp /mnt/ssh.txt /tmp/1/
fi fi
if [ -e /settings/wpa_supplicant.conf ]; then
cp /settings/wpa_supplicant.conf /tmp/1/
fi
if ! grep -q resize /proc/cmdline; then if ! grep -q resize /proc/cmdline; then
sed -i 's| quiet init=/usr/lib/raspi-config/init_resize.sh||' /tmp/1/cmdline.txt sed -i 's| quiet init=/usr/lib/raspi-config/init_resize.sh||' /tmp/1/cmdline.txt
fi fi