Project

General

Profile

« Previous | Next » 

Revision 29b42b4a

Added by Ermal Luçi over 17 years ago

Add way to find the version of pfSense.
This is needed since for 1.3 rules that packages install should be overridable.

View differences:

etc/inc/pkg-utils.inc
45 45
	safe_mkdir("/usr/local/pkg/pf");
46 46
}
47 47

  
48
$version = split("-", trim(file_get_contents("/etc/version")));
49
$ver = split("\.", $version[0]);
50
$g['version'] = intval($ver[1]);
51

  
48 52
/****f* pkg-utils/remove_package
49 53
 * NAME
50 54
 *   remove_package - Removes package from FreeBSD if it exists
......
971 975
	}
972 976
	return;
973 977
}
974
?>
978
?>

Also available in: Unified diff