From 9a88f7da453eadc72d8f333700dbd80777feecd1 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 25 Feb 2018 14:33:19 +0100 Subject: Initial commit Signed-off-by: David Oberhollenzer --- services/Makemodule.am | 5 +++++ services/agetty.in | 7 +++++++ services/hostname.in | 7 +++++++ services/hwclock.in | 6 ++++++ services/loopback.in | 10 ++++++++++ services/sysctl.in | 8 ++++++++ services/sysinit | 4 ++++ 7 files changed, 47 insertions(+) create mode 100644 services/Makemodule.am create mode 100644 services/agetty.in create mode 100644 services/hostname.in create mode 100644 services/hwclock.in create mode 100644 services/loopback.in create mode 100755 services/sysctl.in create mode 100644 services/sysinit (limited to 'services') diff --git a/services/Makemodule.am b/services/Makemodule.am new file mode 100644 index 0000000..88c34a4 --- /dev/null +++ b/services/Makemodule.am @@ -0,0 +1,5 @@ +initdir = @TEMPLATEDIR@ +init_DATA = services/agetty services/hostname services/loopback +init_DATA += services/sysctl services/hwclock services/sysinit + +EXTRA_DIST += services/sysinit diff --git a/services/agetty.in b/services/agetty.in new file mode 100644 index 0000000..b4aeebd --- /dev/null +++ b/services/agetty.in @@ -0,0 +1,7 @@ +name = "agetty" +description = "agetty on %0" +exec = "@SBINPATH@/agetty %0 linux" +type = respawn +target = boot +after = sysinit +tty = "/dev/%0" diff --git a/services/hostname.in b/services/hostname.in new file mode 100644 index 0000000..4ff5acd --- /dev/null +++ b/services/hostname.in @@ -0,0 +1,7 @@ +name = "hostname" +description = "reload hostname" +exec = "@BINPATH@/hostname --file /etc/hostname" +type = wait +target = boot +before = sysinit +after = hwclock diff --git a/services/hwclock.in b/services/hwclock.in new file mode 100644 index 0000000..b558493 --- /dev/null +++ b/services/hwclock.in @@ -0,0 +1,6 @@ +name = "hwclock" +description = "restore time from RTC" +exec = "@SBINPATH@/hwclock --hctosys --utc" +type = wait +target = boot +before = sysinit diff --git a/services/loopback.in b/services/loopback.in new file mode 100644 index 0000000..2720e3c --- /dev/null +++ b/services/loopback.in @@ -0,0 +1,10 @@ +name = "loopback" +description = "configure network loopback device" +type = wait +target = boot +before = sysinit +after = hwclock +after = hostname + +exec = "@SBINPATH@/ip addr add 127.0.0.1/8 dev lo brd +" +exec = "@SBINPATH@/ip link set lo up" diff --git a/services/sysctl.in b/services/sysctl.in new file mode 100755 index 0000000..5f76328 --- /dev/null +++ b/services/sysctl.in @@ -0,0 +1,8 @@ +name = "sysctl" +description = "configure kernel paramters" +exec = "@SBINPATH@/sysctl --system" +type = wait +target = boot +before = sysinit +after = hwclock +after = hostname diff --git a/services/sysinit b/services/sysinit new file mode 100644 index 0000000..37645a5 --- /dev/null +++ b/services/sysinit @@ -0,0 +1,4 @@ +name = "sysinit" +description = "basic system initialization" +type = once +target = boot -- cgit v1.2.3