diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -8,7 +8,7 @@ version = $$(printf '%s\n' '$(OPK_SOURCE_VERSION)' | \ sed 's|\(^[0-9][0-9]*\.[0-9][0-9]*\).*$$|\1|') script = \ - s|@DISTRIBUTION@|ProteanOS|; \ + s|@DISTRIBUTION@|$${dist_name}|; \ s|@OS@|$(os)|; \ s|@VERSION@|$(version)|; @@ -27,9 +27,12 @@ install: build ln -s /run/lock base-files.data/var/lock # Install base files. set -e; \ + . ../dist-vars.sh; \ + printf "%s$${dist_motd_banner:+\n}\n" \ + "$$(printf '%s' "$${dist_motd_banner}")" \ + >base-files.data/etc/motd; \ sed ':l; N; $$!bl; s/\([^\n]\)\n\([^\n]\)/\1 \2/g' src/etc/motd | \ - sed "$(script)" | fold -s -w 72 >base-files.data/etc/motd - set -e; \ + sed "$(script)" | fold -s -w 72 >>base-files.data/etc/motd; \ for file in /etc/issue; do \ sed "$(script)" "src/$${file}" >"base-files.data/$${file}"; \ done |