aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hook/uname6
-rw-r--r--install/uname3
-rw-r--r--systemd/uname4
-rw-r--r--systemd/uname.service10
4 files changed, 16 insertions, 7 deletions
diff --git a/hook/uname b/hook/uname
deleted file mode 100644
index d82d822..0000000
--- a/hook/uname
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-run_earlyhook() {
- echo " Booting $(uname -srm)."
- echo
-}
diff --git a/install/uname b/install/uname
index f0fd732..1b306ab 100644
--- a/install/uname
+++ b/install/uname
@@ -1,7 +1,8 @@
#!/bin/sh
build() {
- add_runscript
+ add_systemd_unit uname.service
+ add_symlink "/usr/lib/systemd/sysinit.target.wants/uname.service" "../uname.service"
# busybox provides uname, so we do not add it
}
diff --git a/systemd/uname b/systemd/uname
new file mode 100644
index 0000000..7143927
--- /dev/null
+++ b/systemd/uname
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo " Booting $(uname -srm)."
+echo
diff --git a/systemd/uname.service b/systemd/uname.service
new file mode 100644
index 0000000..53373e6
--- /dev/null
+++ b/systemd/uname.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=uname
+DefaultDependencies=no
+Before=sysinit.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+StandardOutput=tty
+ExecStart=/usr/lib/systemd/scripts/uname