diff options
-rw-r--r-- | conf.default/config.xml | 2 | ||||
-rw-r--r-- | etc/inc/upgrade_config.inc | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/conf.default/config.xml b/conf.default/config.xml index dd804dc..9e564ed 100644 --- a/conf.default/config.xml +++ b/conf.default/config.xml @@ -1,7 +1,7 @@ <?xml version="1.0"?> <!-- pfSense default system configuration --> <pfsense> - <version>9.3</version> + <version>9.4</version> <lastchange></lastchange> <theme>pfsense_ng</theme> <sysctl> diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 113c311..9181024 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -2992,4 +2992,14 @@ function upgrade_092_to_093() { enable_rrd_graphing(); } +function upgrade_093_to_094() { + global $config; + + if (isset($config['system']['powerd_mode'])) { + $config['system']['powerd_ac_mode'] = $config['system']['powerd_mode']; + $config['system']['powerd_battery_mode'] = $config['system']['powerd_mode']; + unset($config['system']['powerd_mode']); + } +} + ?> |