Skip to content
daniel edited this page May 16, 2021 · 13 revisions

/bootstrap-plugins/remove - remove sed pattern "/.../d" from file where it matches

Config parameters

Name Description Default Value
RPI_REMOVE_FILE file to remove pattern from
RPI_REMOVE_PATTERN sed pattern to match (and remove)

Distfiles

none

Examples

RPI_BOOTSTRAP_PLUGINS+=("remove") to append the plugin or RPI_BOOTSTRAP_PLUGINS=( ... "remove" ... ) to place at some position in the current list.

delete lines containing "exit 0" from /etc/rc.local

RPI_REMOVE_FILE="${RPI_ROOT}/etc/rc.local"
RPI_REMOVE_PATTERN="exit 0"

remove user "foo" from /etc/passwd and /etc/shadow

RPI_REMOVE_FILE=( "${RPI_ROOT}/etc/passwd" "${RPI_ROOT}/etc/shadow" )
RPI_REMOVE_PATTERN="^foo.*"

Tests

TODO

Clone this wiki locally