-
Notifications
You must be signed in to change notification settings - Fork 1
remove
daniel edited this page May 8, 2021
·
13 revisions
remove sed pattern "/.../d" from file where it matches
Name | Description | Default Value |
---|---|---|
RPI_REMOVE_FILE | file to remove pattern from | |
RPI_REMOVE_PATTERN | sed pattern to match (and remove) |
none
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.*"