Project

General

Profile

« Previous | Next » 

Revision 846dda21

Added by Viktor Gurov over 5 years ago

removed changes of config.xml

View differences:

src/etc/phpshellsessions/restartallwan
28 28
	next($config['interfaces']);
29 29
}
30 30

  
31
// disable all those interfaces:
32
foreach ($names_restart as $id) {
33
	unset($config['interfaces'][$id]['enable']);
34
}
35
unlink_if_exists("/tmp/config.cache");
36
write_config("pfSsh.php disables WAN interfaces");
37

  
38 31
foreach ($names_restart as $id) {
39 32
	interface_bring_down($id, true, $config['interfaces'][$id]);
40 33
if (isset($config['dhcpd'][$id]['enable']) || 
......
46 39

  
47 40
sleep (1);
48 41

  
49
// enable all those interfaces:
50
foreach ($names_restart as $id) {
51
	$config['interfaces'][$id]['enable'] = '';
52
}
53
unlink_if_exists("/tmp/config.cache");
54
write_config("pfSsh.php enables WAN interfaces");
55

  
56 42
foreach ($names_restart as $id) {
57 43
	interface_bring_down($id, false, $config['interfaces'][$id]);
58 44
	interface_configure($id, true);

Also available in: Unified diff