Übersicht
Stichwortsuche
History
Versionen
Kategorien
Alle Artikel
English
SuSE Linux: Version 4.4.1#0
init
, also inbesondere auch
beim Booten, erscheint die Fehlermeldung:
/sbin/init.d/rc: test: /sbin/init.d/rc2.d/S07i4l_route: binary operator expectedDanach sind nicht alle Boot-Scripte richtig gelaufen, schlimmstenfalls kann sogar der Prozess stehen bleiben.
Dies kann nur passieren, wenn das Paket i4l
installiert
ist, oder manuell Links in den rc-Pfaden angelegt wurde.
/sbin/init.d/rc
wird eine in Spezialfällen falsche
Auswertung gemacht, wenn zwei Link auf dasselbe Init-Script verweisen.
/sbin/init.d/rc2.d/S07i4l_route
und
/sbin/init.d/rc3.d/S07i4l_route
/sbin/init.d/rc
funktioniert
zuverlässig. Vorsicht: machen Sie beim Erstellen keinen Fehler, ohne
dieses Script bootet der Rechner nicht mehr richtig!
#! /bin/sh # Copyright (c) 1996 S.u.S.E. GmbH Fuerth, Germany. All rights reserved. # # Author: Florian La Roche, 1996 # Werner Fink , 1996 # # /sbin/init.d/rc # # This file is responsible for starting/stopping services # when the runlevel changes. If the action for a particular # feature in the new run-level is the same as the action in # the previous run-level, this script will neither start nor # stop that feature. # . /etc/rc.config # set onlcr to avoid staircase effect stty onlcr 0>&1 trap "" 0 1 15 echo "$0: Previous runlevel: $PREVLEVEL, current runlevel: $RUNLEVEL." curdir=/sbin/init.d/rc$RUNLEVEL.d prevdir=/sbin/init.d/rc$PREVLEVEL.d if test "$PREVLEVEL" != N; then # # run the KILL scripts of the previous runlevel # for i in $prevdir/K*; do test -x "$i" || continue # don't run the kill script, if the new runlevel has a start script start=${i##*/K[0-9][0-9]} test -f $curdir/S[0-9][0-9]$start && continue $i stop done fi # # run the START scripts of the current (new) runlevel # for i in $curdir/S*; do test -x "$i" || continue # don't run start script, if previous runlevel had a kill script if test "$PREVLEVEL" != N; then start=${i##*/S[0-9][0-9]} test -f $prevdir/K[0-9][0-9]$start && continue fi $i start done exit 0
Stichwörter: ROUTE, RC, TEST, BINARY OPERATOR EXPECTED, RUNLEVEL, INIT
Kategorien:
Booten
Übersicht
Stichwortsuche
History
Versionen
Kategorien
Alle Artikel
English