Skip to content

Commit

Permalink
remove newlines from cmdline.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hiepler committed Sep 2, 2023
1 parent 9baad3c commit 241cc23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstrap-plugins/cmdline
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ function rpi_cmdline_run() {
log "removing ${c} ..."
rpi_remove_pattern_from_file "${c}" "${RPI_BOOT}/cmdline.txt" || error "removing ${c}"
done

# remove newlines from cmdline.txt
tr '\n' ' ' < "${RPI_BOOT}/cmdline.txt" > "${RPI_BOOT}/cmdline.new"
mv "${RPI_BOOT}/cmdline.new" "${RPI_BOOT}/cmdline.txt"
}

function rpi_cmdline_description() {
Expand Down

0 comments on commit 241cc23

Please sign in to comment.