Skip to content

Commit

Permalink
fix setup_init to work correctly on Solaris 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsiomb committed Nov 27, 2024
1 parent d7e6f2c commit 8bd36c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup_init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bd36c2

Please sign in to comment.