summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorJim P <jim@pingle.org>2013-02-09 15:17:36 -0800
committerJim P <jim@pingle.org>2013-02-09 15:17:36 -0800
commitccb5fb15d70edafd7281d7a3e34f152268eba06a (patch)
tree4e32c0532a85fc174d62d1de1712802c3310101f /etc/inc
parentb9f29f84af1d22732a91581c1a12c4b7ebad1e6f (diff)
parent6015f75bbae2732e06255912e6bb455fd87c47d3 (diff)
downloadpfsense-ccb5fb15d70edafd7281d7a3e34f152268eba06a.zip
pfsense-ccb5fb15d70edafd7281d7a3e34f152268eba06a.tar.gz
Merge pull request #397 from N0YB/PowerD_AC_BAT_Modes
Upgrade code & config default version
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/upgrade_config.inc10
1 files changed, 10 insertions, 0 deletions
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']);
+ }
+}
+
?>
OpenPOWER on IntegriCloud