About sdlog2

Hi.
I use PX4 v1.6.5.
I’d like to change the start timing of the log when connecting the power supply, but it will not work.
This is my code.
Firmware/ROMFS/px4fmu_common/init.d/rcS


# Logging
#
if param compare SYS_LOGGER 0
then
	# check if we should increase logging rate for ekf2 replay message logging
	if param greater EKF2_REC_RPL 0
	then
		if sdlog2 start -r 500 -e -b 20 -t
		then
		fi
	else
		if sdlog2 start -r 100 -a -b 12 -t -e
		then
		fi
	fi
else
	set LOGGER_ARGS ""
	#
	# Adjust FMUv5 logging settings
	#
	if ver hwcmp PX4FMU_V5
	then
		set LOGGER_BUF 64
		param set SDLOG_MODE 2
	fi
	if param compare SDLOG_MODE 1
	then
		set LOGGER_ARGS "-e"
	fi
	if param compare SDLOG_MODE 2
	then
		set LOGGER_ARGS "-f"
	fi
	if ver hwcmp AEROFC_V1
	then
		set LOGGER_ARGS "-m mavlink"
	fi
	if logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS}
	then
	fi
	unset LOGGER_BUF
	unset LOGGER_ARGS
fi

I am trying to add the optional -e.
But no data is there.

Help.