-
Notifications
You must be signed in to change notification settings - Fork 1
replace
daniel edited this page May 15, 2021
·
13 revisions
/bootstrap-plugins/replace - replace string in file (sed pattern "s/.../g")
Name | Description | Default Value |
---|---|---|
RPI_REPLACE_FILE | file to search & replace pattern in | |
RPI_REPLACE_PATTERN | sed pattern to match (and replace) |
none
RPI_BOOTSTRAP_PLUGINS+=("replace")
to append the plugin or RPI_BOOTSTRAP_PLUGINS=( ... "replace" ... )
to place at some position in the current list.
RPI_REPLACE_PATTERN="exit 0/# exit 0"
RPI_REPLACE_FILE="${RPI_ROOT}/etc/rc.local"