mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
bullseye migration: add critical fix for RPi failing to get network on reboot
This commit is contained in:
parent
d2a6dcd41a
commit
98506d6a73
1 changed files with 11 additions and 0 deletions
|
@ -185,6 +185,17 @@ class MyMigration(Migration):
|
||||||
del services["postgresql"]
|
del services["postgresql"]
|
||||||
_save_services(services)
|
_save_services(services)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Critical fix for RPI otherwise network is down after rebooting
|
||||||
|
# https://forum.yunohost.org/t/20652
|
||||||
|
#
|
||||||
|
if os.system("systemctl | grep -q dhcpcd") == 0:
|
||||||
|
os.system("mkdir -p /etc/systemd/system/dhcpcd.service.d")
|
||||||
|
write_to_file(
|
||||||
|
"/etc/systemd/system/dhcpcd.service.d/wait.conf",
|
||||||
|
'[Service]\nExecStart=\nExecStart=/usr/sbin/dhcpcd -w'
|
||||||
|
)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Main upgrade
|
# Main upgrade
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue