crank-demos: fix failing sed command
The WESTON_SERVICE variable may contain the '@' character. In that case the sed command fails due to using the same character as separator. To prevent this problem use a different separator for the sed command. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
19d940965d
commit
c2c527cf8d
|
|
@ -73,7 +73,7 @@ do_install () {
|
||||||
# Install systemd unit files
|
# Install systemd unit files
|
||||||
install -d ${D}${systemd_unitdir}/system
|
install -d ${D}${systemd_unitdir}/system
|
||||||
install -m 0644 ${WORKDIR}/crank-demo.service ${D}${systemd_unitdir}/system/
|
install -m 0644 ${WORKDIR}/crank-demo.service ${D}${systemd_unitdir}/system/
|
||||||
sed -i -e "s@##WESTON_SERVICE##@${WESTON_SERVICE}@g" \
|
sed -i -e "s,##WESTON_SERVICE##,${WESTON_SERVICE},g" \
|
||||||
"${D}${systemd_unitdir}/system/crank-demo.service"
|
"${D}${systemd_unitdir}/system/crank-demo.service"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue