Skip to content

Commit

Permalink
v68
Browse files Browse the repository at this point in the history
  • Loading branch information
Fourdee committed Jun 14, 2015
1 parent ced318b commit b78c462
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ v68
(xx/06/15)
Release Notes:
General | DietPi's logging system has been completely rewritten. Please see here for full list of options: http://fuzon.co.uk/phpbb/viewtopic.php?f=8&t=5&start=20#p68
General | DietPi now automates and manages Apt-get update. apt-get update is automatically called when its required and/or, hasnt been updated in 7 days. Also runs as a sperate thread to speed up initial installation, and, future dieti-software installations.
General | Changed image creation methods. Total image sizes have been reduced.
DietPi-Software | Added DietPi choice system for various system logging options. Features 3 choices: 2 Ramlog modes and 1 full system logging option (rsyslog logrotate).
DietPi-Logclear | New addition. Multiple options for clearing log files. Also includes backup feature. Run dietpi-logclear to get available modes.
DietPi-BugReport | Can now generate an offline bugreport.zip if no network is detected.
Expand Down
14 changes: 9 additions & 5 deletions dietpi/dietpi-apt-get_update
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
#Update state file
Write_StateFile_Temp

#clean
apt-get clean

#Update apt, output to temp file
apt-get update > "$TEMP_OUTPUT"

Expand Down Expand Up @@ -118,10 +121,12 @@

#Currently running
while (( $STATE_CURRENT == 0 )); do

local cache_folder_size=$(ls -l /var/cache/apt | grep 'total ' | sed 's/total //g')

/tmp/dietpi/dietpi-banner 0
echo -e "\n Waiting for apt-get update to finish. Please wait..."
echo -e "\n Status: | Running | CPU usage: $cpu_usage\n"
echo -e "\n Waiting for apt-get update to finish: Please wait..."
echo -e "\n apt-cache database size: $cache_folder_size KB"

#2+ cores, use one thread for making it look pretty :P
if (( $(nproc) > 1 )); then
Expand All @@ -139,7 +144,6 @@

}


Write_StateFile_Temp(){

#Update state file
Expand Down Expand Up @@ -185,7 +189,7 @@
elif (( $INPUT == 1 )); then

Get_Current_State
Update_Apt
Update_Apt &

#Wait / inform user
Wait_For_Completion
Expand All @@ -200,7 +204,7 @@
Reset_StateFile

#Run again
Update_Apt
Update_Apt &

#Wait / inform user
Wait_For_Completion
Expand Down
6 changes: 3 additions & 3 deletions dietpi/finalise
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@
sed -i "/AUTO_DietpiSoftware_SSHServerIndex=/c\AUTO_DietpiSoftware_SSHServerIndex=-1" /boot/dietpi.txt
# 0 = none
sed -i "/AUTO_DietpiSoftware_FileServerIndex=/c\AUTO_DietpiSoftware_FileServerIndex=0" /boot/dietpi.txt
#-1 = ramlog 24h clear
#-1 = ramlog 1
sed -i "/AUTO_DietpiSoftware_LoggingIndex=/c\AUTO_DietpiSoftware_LoggingIndex=-1" /boot/dietpi.txt
#Remove logging mode -2 backups
rm -R /"$HOME"/logfile_storage
#Remove log backups
rm -R "$HOME"/logfile_storage

# Development Settings
sed -i "/gitbranch=/c\gitbranch=master" /boot/dietpi.txt
Expand Down

0 comments on commit b78c462

Please sign in to comment.