Skip to content

Commit

Permalink
#779 Теперь будет лишь две попытки получения адреса через DHCP с инте…
Browse files Browse the repository at this point in the history
…рвалом в 2 секунды.
  • Loading branch information
boffart committed Aug 28, 2024
1 parent 6e6a3cb commit 44e696f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Core/System/Network.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,19 +783,17 @@ public function lanConfigure(): int

// Obtain IP and wait for the process to finish
$workerPath = '/etc/rc/udhcpc_configure';
$options = '-t 6 -T 5 -q -n';
$options = '-t 2 -T 2 -q -n';
$arr_commands[] = "$udhcpc $options -i $if_name -x hostname:$hostname -s $workerPath";
// Start a new udhcpc process in the background
$options = '-t 6 -T 5 -S -b -n';
$arr_commands[] = "$nohup $udhcpc $options -p {$pid_file} -i $if_name -x hostname:$hostname -s $workerPath 2>&1 &";
/*
udhcpc - utility for configuring the interface
- configures /etc/resolv.conf
- configures /etc/resolv.conf
Further route configuration will be performed in udhcpcConfigureRenewBound();
and udhcpcConfigureDeconfig(). These methods will be called by the script WorkerUdhcpcConfigure.php.
// man udhcp
and udhcpcConfigureDeconfig(). These methods will be called by the PHP script udhcpc_configure.
// http://pwet.fr/man/linux/administration_systeme/udhcpc/
*/
} else {
// Static IP configuration
Expand Down

0 comments on commit 44e696f

Please sign in to comment.