kopia lustrzana https://github.com/FreeSpacenav/spacenavd
- Applied G.Dimitropoulos' fix for setup_init, which would fail to detect the
correct runlevel if the string initdefault is mentioned anywhere in the comments of inittab. git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@115 ef983eb1-d774-4af8-acfd-baaf7b16a646pull/1/head
rodzic
237199d8f7
commit
e5e7f92e18
|
@ -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/^id://; s/:init.*$//'`
|
||||
if [ $? != 0 -o -z "$rlvl" ]; then
|
||||
echo 'default runlevel detection failed.'
|
||||
rlvl=2
|
||||
|
|
Ładowanie…
Reference in New Issue