mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 15:06:58 +02:00
Fix up the modification of the flimflam upstart script
to handle changed command line arguments, and attempt to make it resilient in the face of future changes. TEST=Run script on fresh image; confirm that '-I eth_test' is present on the exec line of /etc/init/flimflam.conf Review URL: http://codereview.chromium.org/2842023
This commit is contained in:
parent
8f23ff3dfe
commit
9494671269
@ -11,7 +11,7 @@ testif=eth_test
|
|||||||
# Prevent flimflam from taking control of the backchannel network device.
|
# Prevent flimflam from taking control of the backchannel network device.
|
||||||
ORIG_CONF=${ROOT_FS_DIR}/etc/init/flimflam.conf
|
ORIG_CONF=${ROOT_FS_DIR}/etc/init/flimflam.conf
|
||||||
TEMP_CONF=${ORIG_CONF}.tmp
|
TEMP_CONF=${ORIG_CONF}.tmp
|
||||||
sed "s/flimflamd -W/flimflamd -I ${testif} -W/" ${ORIG_CONF} > ${TEMP_CONF}
|
sed "s,/usr/sbin/flimflamd,/usr/sbin/flimflamd -I ${testif}," ${ORIG_CONF} > ${TEMP_CONF}
|
||||||
mv -f ${TEMP_CONF} ${ORIG_CONF}
|
mv -f ${TEMP_CONF} ${ORIG_CONF}
|
||||||
|
|
||||||
# Arrange to run dhclient on the backchannel device but without
|
# Arrange to run dhclient on the backchannel device but without
|
||||||
|
Loading…
Reference in New Issue
Block a user