Project

General

Profile

« Previous | Next » 

Revision 67c93444

Added by Renato Botelho over 9 years ago

Remove unused function sync_system_time()

View differences:

src/etc/inc/system.inc
1892 1892
	return;
1893 1893
}
1894 1894

  
1895
function sync_system_time() {
1896
	global $config, $g;
1897

  
1898
	if (platform_booting()) {
1899
		echo gettext("Syncing system time before startup...");
1900
	}
1901

  
1902
	/* foreach through servers and write out to ntpd.conf */
1903
	foreach (explode(' ', $config['system']['timeservers']) as $ts) {
1904
		mwexec("/usr/local/sbin/ntpdate -s $ts");
1905
	}
1906

  
1907
	if (platform_booting()) {
1908
		echo gettext("done.") . "\n";
1909
	}
1910

  
1911
}
1912

  
1913 1895
function system_halt() {
1914 1896
	global $g;
1915 1897

  

Also available in: Unified diff