The right line is
- Code: Select all
if (mwexec("/sbin/udhcpc -b -i " . escapeshellarg($lanif) . " -s {$g['etc_path']}/api/api_dhcpc.php dhcpdCbScript -x hostname='{$config['system']['hostname']}'") != 0){
- Code: Select all
udhcpc: option -h NAME is deprecated, use -x hostname:NAME