Project

General

Profile

« Previous | Next » 

Revision 26c8cc72

Added by Jim Pingle almost 15 years ago

Add function to convert pfsense slice name to product name.

View differences:

etc/inc/pfsense-utils.inc
1940 1940
	$BOOTFLASH="{$BOOT_DRIVE}s{$OLDSLICE}";
1941 1941
}
1942 1942

  
1943
function nanobsd_friendly_slice_name($slicename) {
1944
	global $g;
1945
	return strtolower(str_ireplace('pfsense', $g['product_name'], $slicename));
1946
}
1947

  
1943 1948
function get_include_contents($filename) {
1944 1949
    if (is_file($filename)) {
1945 1950
        ob_start();

Also available in: Unified diff