Skip to content

Commit

Permalink
v6.20
Browse files Browse the repository at this point in the history
+ - General | Reduced disk write count: fake-hwclock.dat now stored in RAM. Many thanks to @WolfganP! https://github.com/Fourdee/DietPi/issues/2396
  • Loading branch information
Daniel Knight committed Jan 5, 2019
1 parent d7d7545 commit bff17ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Changes / Improvements / Optimisations:
- DietPi-Update | Added optional ability to automatically update DietPi, when updates are available. Please note, this is disabled by default.
- DietPi-Sync | Removed the compression option, which has no effect on local sync, since files are not stored compressed, but only transferred compressed through remote sync protocols, which are currently not offered by DietPi-Sync.
- General | Moved the remaining conf/* files located on DietPi-RAMdisk to /var/lib/dietpi or into DietPi-PREP, and removed /DietPi/dietpi/conf completely. These files were only used once or never, thus have no business inside the RAMdisk.
- General | Reduced disk write count: fake-hwclock.dat now stored in RAM. Many thanks to @WolfganP! https://github.com/Fourdee/DietPi/issues/2396

Bug Fixes:
- DietPi-Software | Nextcloud: Resolved an issue, where the Nextcloud Apache config was not downloaded correctly. Thanks to @Stefan3v for reporting this issue: https://github.com/Fourdee/DietPi/issues/2383
Expand Down
5 changes: 5 additions & 0 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,11 @@ _EOF_

# - allow times in the past
G_CONFIG_INJECT 'FORCE=' 'FORCE=force' /etc/default/fake-hwclock
# Move data store to RAM: https://github.com/Fourdee/DietPi/issues/2396
systemctl stop fake-hwclock
G_CONFIG_INJECT 'FILE=' 'FILE=/tmp/fake-hwclock.dat' /etc/default/fake-hwclock
rm -f /etc/fake-hwclock.data
systemctl restart fake-hwclock

G_DIETPI-NOTIFY 2 'Configuring enable serial console:'

Expand Down
6 changes: 6 additions & 0 deletions dietpi/patch_file
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,12 @@ Also have a look at "Sonarr", another alternative TV show manager, available for

fi
#-------------------------------------------------------------------------------
#Move fake-hwclock data store to RAM: https://github.com/Fourdee/DietPi/issues/2396
systemctl stop fake-hwclock
G_CONFIG_INJECT 'FILE=' 'FILE=/tmp/fake-hwclock.dat' /etc/default/fake-hwclock
rm -f /etc/fake-hwclock.data
systemctl restart fake-hwclock
#-------------------------------------------------------------------------------

fi

Expand Down

0 comments on commit bff17ab

Please sign in to comment.