Mercurial > vanilla
changeset 590:503c883bd0d3
core/etc: add vanilla-release
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 12 Jul 2019 09:40:31 +0200 |
parents | 2b990d557a7f |
children | 75b00bfba047 |
files | core/etc/etc.sh |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/etc/etc.sh Thu Jul 11 12:39:57 2019 +0200 +++ b/core/etc/etc.sh Fri Jul 12 09:40:31 2019 +0200 @@ -16,7 +16,7 @@ # PKGNAME=etc -PKGVERSION=0.1 +PKGVERSION=0.2 PKGREVISION=1 PKGLICENSE="ISC" PKGSUMMARY="base system configuration files" @@ -40,4 +40,14 @@ install -Dm0644 securetty $DESTDIR/etc/securetty install -Dm0644 shells $DESTDIR/etc/shells ln -sf /proc/self/mounts $DESTDIR/etc/mtab + + # Create /etc/vanilla-release information file. + case $(uname -m) in + 'x86_64') + arch="amd64" + ;; + esac + + echo "VERSION=${PKGVERSION}" > $DESTDIR/etc/vanilla-release + echo "ARCH=$arch" >> $DESTDIR/etc/vanilla-release }