Moving the service part to its own file. - stali-init - Stali init files. To be shared.
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit c58b5ec95b7de4d207f2b4029074cb9ebb467e44
(DIR) parent 376703b08351274682217cce3637326aba97c811
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 1 Mar 2014 17:37:47 +0100
Moving the service part to its own file.
Diffstat:
inittab.busybox | 2 +-
rc.local | 3 ---
rc.svc | 8 ++++++++
3 files changed, 9 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/inittab.busybox b/inittab.busybox
@@ -3,7 +3,7 @@
#
::sysinit:/bin/rc.init
-::once:/bin/rc.multi
+::once:/bin/rc.svc
ttty1::respawn:/sbin/agetty --noclear -8 38400 tty1 linux
ttty2::respawn:/sbin/agetty --noclear -8 38400 tty2 linux
(DIR) diff --git a/rc.local b/rc.local
@@ -3,6 +3,3 @@
# /etc/rc.local: Local multi-user startup script.
#
-printf "Running services.\n"
-svc -s 2>&1 >/dev/null
-
(DIR) diff --git a/rc.svc b/rc.svc
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+printf "Running services.\n"
+svc -s >/dev/null 2>&1
+
+printf "Running rc.local.\n"
+t[ -x /bin/rc.local ] && /bin/rc.local
+