Skip to content

Commit

Permalink
Fix issue 272 - error when echo 0 into dirty_background_bytes and dir…
Browse files Browse the repository at this point in the history
…ty_bytes
  • Loading branch information
przemyslaw-szustak committed Nov 13, 2019
1 parent 85853c7 commit 988b6f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/woeusb
Original file line number Diff line number Diff line change
Expand Up @@ -1674,8 +1674,9 @@ workaround_linux_make_writeback_buffering_not_suck(){
echo_with_color \
yellow \
'Resetting workaround to prevent 64-bit systems with big primary memory from being unresponsive during copying files.'
echo 0 > /proc/sys/vm/dirty_background_bytes
echo 0 > /proc/sys/vm/dirty_bytes

{ echo 0 > /proc/sys/vm/dirty_background_bytes; } || { echo_with_color yellow 'Warning!: command "echo 0 > /proc/sys/vm/dirty_background_bytes" - returned code $?'; }
{ echo 0 > /proc/sys/vm/dirty_bytes; } || { echo_with_color yellow 'Warning: command "echo 0 > /proc/sys/vm/dirty_bytes" - returned code $?'; }
;;
*)
printf_with_color \
Expand Down

0 comments on commit 988b6f5

Please sign in to comment.