1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-12-26 18:58:20 +01:00

fix partition problem

This commit is contained in:
DanyLE 2023-07-10 13:12:50 +02:00
parent a942ba09bc
commit 88905fa585
3 changed files with 24 additions and 4 deletions

View File

@ -10,6 +10,7 @@ EXTRA_USERS_PARAMS = "usermod -p BJpK8ADNDLsGg root; \
usermod -a -G input diya; \
usermod -a -G dialout diya; \
usermod -a -G audio diya; \
usermod -a -G avahi diya; \
usermod -a -G sudo diya \
"
IMAGE_BOOT_FILES:append = "fs_resize"

View File

@ -1,3 +1,23 @@
allow-hotplug wlan0
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# Wireless interfaces
iface wlan0 inet dhcp
wpa-conf /var/etc/network/wpa_supplicant.conf
wireless_mode managed
wireless_essid any
wpa-driver wext
wpa-conf /var/etc/network/wpa_supplicant.conf
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
# Bluetooth networking
# iface bnep0 inet dhcp

View File

@ -25,8 +25,7 @@ case "$1" in
rm /boot/home_partition_should_be_formated
fi
if [ -e "/boot/wpa_supplicant.conf" ];then
install -m 0644 /boot/wpa_supplicant.conf /var/etc/network/
rm /boot/wpa_supplicant.conf
mv /boot/wpa_supplicant.conf /var/etc/network/
reboot
fi
# display information