[Lunar-commits] <moonbase> systemd: added some useful files and removed an empty line
Jean-Michel Bruenn
wdp at lunar-linux.org
Thu Aug 4 23:46:26 CEST 2011
commit 4781cd0b2656961af0ba897999d2ce3a57fa027c
Author: Jean-Michel Bruenn <wdp at lunar-linux.org>
Date: Thu Aug 4 23:46:26 2011 +0200
systemd: added some useful files and removed an empty line
---
zbeta/systemd/BUILD | 28 +++++++++++++++++++++++++++-
zbeta/systemd/POST_INSTALL | 1 -
zbeta/systemd/files/hostname | 1 +
zbeta/systemd/files/locale.conf | 2 ++
zbeta/systemd/files/os-release | 4 ++++
zbeta/systemd/files/vconsole.conf | 3 +++
6 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/zbeta/systemd/BUILD b/zbeta/systemd/BUILD
index a39196f..87e8538 100644
--- a/zbeta/systemd/BUILD
+++ b/zbeta/systemd/BUILD
@@ -1,10 +1,36 @@
(
-# autoreconf &&
+ # autoreconf &&
OPTS+=" --with-rootdir=/ " &&
OPTS+=" --with-distro=other" &&
OPTS+=" --with-udevrulesdir=/lib/udev/rules.d/" &&
+ # just adding some files which are useful to
+ # systemd
+ # todo: some info-message to the user, that
+ # he/she should adjust /etc/hostname,
+ # /etc/vconsole.conf and /etc/locale.conf
+ # could be useful.
+
+ # a not existing hostname is set to lunar.
+ if [ ! -f /etc/hostname ]; then
+ cp $SCRIPT_DIRECTORY/files/hostname /etc/hostname
+ fi &&
+ # vconsole.conf defaults to us-layout
+ if [ ! -f /etc/vconsole.conf ]; then
+ cp $SCRIPT_DIRECTORY/files/vconsole.conf /etc/vconsole.conf
+ fi &&
+ # os-release should properly show lunar
+ # todo: we might replace this with some auto-generated
+ # values from /etc/lunar.release in the future.
+ if [ ! -f /etc/os-release ]; then
+ cp $SCRIPT_DIRECTORY/files/os-release /etc/os-release
+ fi &&
+ # last but not least the locale settings, defaulting to US
+ if [ ! -f /etc/locale.conf ]; then
+ cp $SCRIPT_DIRECTORY/files/locale.conf /etc/locale.conf
+ fi &&
+
default_build
) > $C_FIFO 2>&1
diff --git a/zbeta/systemd/POST_INSTALL b/zbeta/systemd/POST_INSTALL
index 2cd9fac..ead2fbc 100644
--- a/zbeta/systemd/POST_INSTALL
+++ b/zbeta/systemd/POST_INSTALL
@@ -1,3 +1,2 @@
lin -c udev
lin -c dbus
-
diff --git a/zbeta/systemd/files/hostname b/zbeta/systemd/files/hostname
new file mode 100644
index 0000000..faad442
--- /dev/null
+++ b/zbeta/systemd/files/hostname
@@ -0,0 +1 @@
+lunar
diff --git a/zbeta/systemd/files/locale.conf b/zbeta/systemd/files/locale.conf
new file mode 100644
index 0000000..0e2b6bc
--- /dev/null
+++ b/zbeta/systemd/files/locale.conf
@@ -0,0 +1,2 @@
+LANG=en_US.utf8
+LC_COLLATE=C
diff --git a/zbeta/systemd/files/os-release b/zbeta/systemd/files/os-release
new file mode 100644
index 0000000..1b9c95b
--- /dev/null
+++ b/zbeta/systemd/files/os-release
@@ -0,0 +1,4 @@
+NAME=Lunarlinux
+ID=lunar
+PRETTY_NAME=Lunar Linux
+ANSI_COLOR=1;34
diff --git a/zbeta/systemd/files/vconsole.conf b/zbeta/systemd/files/vconsole.conf
new file mode 100644
index 0000000..bd0e8be
--- /dev/null
+++ b/zbeta/systemd/files/vconsole.conf
@@ -0,0 +1,3 @@
+KEYMAP=us
+FONT=lat9w-16
+FONT_MAP=8859-1_to_uni
More information about the Lunar-commits
mailing list