From 8bd36c2b19bf88c73f7e9029d605354073fd9dd3 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 27 Nov 2024 05:31:14 +0200 Subject: [PATCH] fix setup_init to work correctly on Solaris 2.6 --- setup_init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup_init b/setup_init index d4d6f76..a2dae4e 100755 --- a/setup_init +++ b/setup_init @@ -2,7 +2,7 @@ setup_sysv_init() { - rlvl=`cat /etc/inittab | grep :initdefault: | sed 's/^id://; s/:init.*$//'` + rlvl=`cat /etc/inittab | grep :initdefault: | sed 's/^i.://; s/:init.*$//'` if [ $? != 0 -o -z "$rlvl" ]; then echo 'default runlevel detection failed.' rlvl=2