diff --git a/meta-ohos-staging/recipes-core/base-files/base-files/profile.d/tmout.sh b/meta-ohos-staging/recipes-core/base-files/base-files/profile.d/tmout.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dfa4b341da0a03999077919387bda82354c0b72 --- /dev/null +++ b/meta-ohos-staging/recipes-core/base-files/base-files/profile.d/tmout.sh @@ -0,0 +1,5 @@ +# Shell timeout definition + +TMOUT=600 +readonly TMOUT +export TMOUT diff --git a/meta-ohos-staging/recipes-core/base-files/base-files_%.bbappend b/meta-ohos-staging/recipes-core/base-files/base-files_%.bbappend index df1554ff4e63039e0e94040c8221bb93c9af71d0..f3342bf258ef113cca5145788a22a5e455b76900 100644 --- a/meta-ohos-staging/recipes-core/base-files/base-files_%.bbappend +++ b/meta-ohos-staging/recipes-core/base-files/base-files_%.bbappend @@ -1,4 +1,9 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_append = "file://profile.d/tmout.sh" do_install_append () { 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 }