From 3e4ad9324f0dd7a1671ee77c8aa57e170fae3768 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 29 Nov 2018 10:53:05 +0100 Subject: recipes: ptx-profile: rename ptx-profile to 00-ptx.sh krogoth-15.0.0-148-g0aba7d5d36c0 changed /etc/profile to only source /etc/profile.d/*.sh Amend the extension and while at it rename it to 00-ptx.sh instead. The 00- prefix makes for easy overriding. The -profile suffix was removed as it seems redundant when installed inside /etc/profile.d/. Signed-off-by: Ahmad Fatoum --- recipes-core/ptx-profile/ptx-profile.bb | 6 +++--- recipes-core/ptx-profile/ptx-profile/00-ptx.sh | 13 +++++++++++++ recipes-core/ptx-profile/ptx-profile/ptx-profile | 13 ------------- 3 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 recipes-core/ptx-profile/ptx-profile/00-ptx.sh delete mode 100644 recipes-core/ptx-profile/ptx-profile/ptx-profile (limited to 'recipes-core') diff --git a/recipes-core/ptx-profile/ptx-profile.bb b/recipes-core/ptx-profile/ptx-profile.bb index 03d78a3..685913f 100644 --- a/recipes-core/ptx-profile/ptx-profile.bb +++ b/recipes-core/ptx-profile/ptx-profile.bb @@ -2,13 +2,13 @@ DESCRIPTION = "PTX distro specific profile" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" -SRC_URI = "file://ptx-profile" +SRC_URI = "file://00-ptx.sh" S = "${WORKDIR}" do_install () { install -d ${D}${sysconfdir}/profile.d/ - install -m 0755 ${S}/ptx-profile ${D}${sysconfdir}/profile.d/ + install -m 0755 ${S}/00-ptx.sh ${D}${sysconfdir}/profile.d/ } -FILES_${PN} = "${sysconfdir}/profile.d/ptx-profile" +FILES_${PN} = "${sysconfdir}/profile.d/00-ptx.sh" diff --git a/recipes-core/ptx-profile/ptx-profile/00-ptx.sh b/recipes-core/ptx-profile/ptx-profile/00-ptx.sh new file mode 100644 index 0000000..ba3dfb9 --- /dev/null +++ b/recipes-core/ptx-profile/ptx-profile/00-ptx.sh @@ -0,0 +1,13 @@ +# /etc/profile.environment - config for sub-shells +PS1="\\u@\\h:\\w " +PS2=" >" +PS4="+ " + +alias vim='vi' +alias l='ls -l' +alias ll='ls -al' +alias ..='cd ..' +alias ...='cd ../..' +alias md='mkdir' +alias rd='rmdir' + diff --git a/recipes-core/ptx-profile/ptx-profile/ptx-profile b/recipes-core/ptx-profile/ptx-profile/ptx-profile deleted file mode 100644 index ba3dfb9..0000000 --- a/recipes-core/ptx-profile/ptx-profile/ptx-profile +++ /dev/null @@ -1,13 +0,0 @@ -# /etc/profile.environment - config for sub-shells -PS1="\\u@\\h:\\w " -PS2=" >" -PS4="+ " - -alias vim='vi' -alias l='ls -l' -alias ll='ls -al' -alias ..='cd ..' -alias ...='cd ../..' -alias md='mkdir' -alias rd='rmdir' - -- cgit v1.2.3