diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-14 17:25:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-14 17:25:11 +0000 |
commit | eedc7894cc20ac325159ffc80801b2dcbf05e5a3 (patch) | |
tree | 153e9bfbbc537500fbbc6117b4483def225a23bc /etc/inc/pfsense-utils.inc | |
parent | 33cec50122a75a3985751b5f40fad23deebf4c60 (diff) | |
download | pfsense-eedc7894cc20ac325159ffc80801b2dcbf05e5a3.zip pfsense-eedc7894cc20ac325159ffc80801b2dcbf05e5a3.tar.gz |
Sync scheduler type
Ticket #499
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index e43b63b..68b0a3f 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -717,6 +717,18 @@ function backup_config_section($section) { } /* + * backup_config_ts_scheduler(): returns the traffic shaper scheduler for backup + */ +function backup_config_ts_scheduler() { + global $config; + $new_section = &$config['syste']['schedulertype']; + /* generate configuration XML */ + $xmlconfig = dump_xml_config($new_section, $section); + $xmlconfig = str_replace("<?xml version=\"1.0\"?>", "", $xmlconfig); + return $xmlconfig; +} + +/* * backup_config_section($section): returns as an xml file string of * the configuration section */ |