Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
drasko committed May 12, 2015
2 parents 1f78c4c + 231c94c commit a2be5b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions openWrt/files/lib/upgrade/keep.d/base-files
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/etc/config/network.sta
/etc/config/network.ap
/etc/config/network
/etc/samba/smbpasswd
/etc/shadow
/etc/dropbear/
/etc/crontabs/
Expand Down
5 changes: 3 additions & 2 deletions scripts/migrateConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ def saveConfiguration(path, conf):
oldConfig = getConfiguration("/weioUserBackup/config.weio")
newConfig = getConfiguration("/weio/config.weio")

# exceptions
for parameter in newConfig:
if (parameter in oldConfig):
if not("weio_version" in parameter): # don't take the old version of sw, just migrate personal data
if not("weio_version" in parameter) and not("timezone" in parameter): # don't take the old version of sw, just migrate personal data
newConfig[parameter] = oldConfig[parameter]

saveConfiguration("/weio/config.weio", newConfig)
saveConfiguration("/weio/config.weio", newConfig)

0 comments on commit a2be5b8

Please sign in to comment.