Project

General

Profile

« Previous | Next » 

Revision 4144aa81

Added by Ermal LUÇI over 12 years ago

Do the right thing here

View differences:

usr/local/www/interfaces.php
355 355
		if (file_exists("{$g['tmp_path']}/.interfaces.apply")) {
356 356
			$toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.interfaces.apply"));
357 357
			foreach ($toapplylist as $ifapply => $ifcfgo) {
358
				interface_bring_down($ifapply, false, $ifcfgo);
359
				interface_configure($ifapply);
358
				if (isset($config['interfaces'][$ifapply]['enable'])) {
359
					interface_bring_down($ifapply, false, $ifcfgo);
360
					interface_configure($ifapply);
361
				} else
362
					interface_bring_down($ifapply, false, $ifcfgo);
360 363
			}
361 364
		}
362 365
		/* restart snmp so that it binds to correct address */

Also available in: Unified diff