mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-27 11:08:21 +01:00
fix partition problem
This commit is contained in:
parent
a942ba09bc
commit
88905fa585
@ -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"
|
||||
|
@ -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
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user