Skip to content
Snippets Groups Projects
Commit d73d68ed authored by Marta Rybczynska's avatar Marta Rybczynska
Browse files

base-files: add shell timeout


It is a good practice to timeout the shell if no activity. Add a timeout
to the /etc/profile* settings in a separate script.

Signed-off-by: default avatarMarta Rybczynska <marta.rybczynska@huawei.com>
parent 934fcd04
No related branches found
No related tags found
No related merge requests found
# Shell timeout definition
TMOUT=600
readonly TMOUT
export TMOUT
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = "file://profile.d/tmout.sh"
do_install_append () { do_install_append () {
sed -i 's/umask.*/umask 027/g' ${D}/${sysconfdir}/profile sed -i 's/umask.*/umask 027/g' ${D}/${sysconfdir}/profile
install -d ${WORKDIR}/profile.d/ ${D}${sysconfdir}/profile.d/
install -m 0644 ${WORKDIR}/profile.d/tmout.sh ${D}${sysconfdir}/profile.d/tmout.sh
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment