Project

General

Profile

« Previous | Next » 

Revision af61b685

Added by Scott Ullrich over 19 years ago

Switch back to FreeBSD 5's dhclient

View differences:

etc/inc/interfaces.inc
851 851
        mwexec("/sbin/ifconfig {$optif} up");
852 852

  
853 853
        /* fire up dhclient */
854
        mwexec("/sbin/dhclient -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}");
854
        mwexec("/sbin/dhclient -cf {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}");
855 855

  
856 856
	return 0;
857 857
}
......
897 897
        mwexec("/sbin/ifconfig {$optif} up");
898 898

  
899 899
        /* fire up dhclient */
900
        mwexec("/sbin/dhclient -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif} >/tmp/{$optif}_output >/tmp/{$optif}_error_output");
900
        mwexec("/sbin/dhclient -cf {$g['varetc_path']}/dhclient_{$optif}.conf {$optif} >/tmp/{$optif}_output >/tmp/{$optif}_error_output");
901 901

  
902 902
	$fout = fopen("/tmp/ifconfig_{$optif}","w");
903
	fwrite($fout, "/sbin/dhclient -c {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}");
903
	fwrite($fout, "/sbin/dhclient -cf {$g['varetc_path']}/dhclient_{$optif}.conf {$optif}");
904 904
	fclose($fout);
905 905

  
906 906
	return 0;
......
944 944
        mwexec("/sbin/ifconfig {$wanif} up");
945 945

  
946 946
        /* fire up dhclient */
947
        mwexec("/sbin/dhclient -c {$g['varetc_path']}/dhclient_wan.conf {$wanif} >/tmp/{$wanif}_output >/tmp/{$wanif}_error_output");
947
        mwexec("/sbin/dhclient -cf {$g['varetc_path']}/dhclient_wan.conf {$wanif} >/tmp/{$wanif}_output >/tmp/{$wanif}_error_output");
948 948

  
949 949
	$fout = fopen("/tmp/ifconfig_{$wanif}","w");
950
	fwrite($fout, "/sbin/dhclient -c {$g['varetc_path']}/dhclient_wan.conf {$wanif}");
950
	fwrite($fout, "/sbin/dhclient -cf {$g['varetc_path']}/dhclient_wan.conf {$wanif}");
951 951
	fclose($fout);
952 952

  
953 953
	return 0;

Also available in: Unified diff