View previous topic :: View next topic |
Author |
Message |
Thorben n00b


Joined: 21 Jun 2002 Posts: 60 Location: Amsterdam
|
Posted: Fri Nov 29, 2002 2:31 pm Post subject: /sbin/runscript.sh: 1:: command not found |
|
|
Code: | /sbin/runscript.sh: 1:: command not found
/sbin/runscript.sh: 2:: command not found
/sbin/runscript.sh: 10:: command not found
|
Das ganze passiert beim booten von Gentoo mehrere male, wüsste mal ganz gerne was da nicht funzt!
MfG Thorben |
|
Back to top |
|
 |
hopfe Guru

Joined: 22 Oct 2002 Posts: 456 Location: Frankfurt Main oder Aachen
|
Posted: Fri Nov 29, 2002 3:39 pm Post subject: Inhalt |
|
|
Poste mal den Inhalt von runscript.sh, vielleicht findet sich da ein Fehler. |
|
Back to top |
|
 |
Thorben n00b


Joined: 21 Jun 2002 Posts: 60 Location: Amsterdam
|
Posted: Fri Nov 29, 2002 5:12 pm Post subject: |
|
|
Code: | #! /bin/bash
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-src/rc-scripts/sbin/runscript.sh,v 1.5 2002/08/06 19:57:01 azarah Exp $
source /sbin/functions.sh
#state variables
svcpause="no"
svcrestart="no"
myscript="${1}"
if [ -L ${1} ]
then
myservice="$(readlink ${1})"
else
myservice="${1}"
fi
|
geht noch viel weiter, aber ich denke das reicht erstmal, oder?
MfG Thorben |
|
Back to top |
|
 |
rac Bodhisattva


Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
|
Back to top |
|
 |
Thorben n00b


Joined: 21 Jun 2002 Posts: 60 Location: Amsterdam
|
Posted: Fri Nov 29, 2002 9:14 pm Post subject: |
|
|
Sorry, das sagt mir aber rein gar nichts. Was soll ich mit der FAQ zu Benutzerangaben und Einstellungen???
MfG Thorben |
|
Back to top |
|
 |
format c: Tux's lil' helper

Joined: 07 Aug 2002 Posts: 89 Location: Berlin
|
Posted: Fri Nov 29, 2002 10:07 pm Post subject: |
|
|
Dem Link gefolgt:
Quote: |
Why am I getting messages like /sbin/runscript.sh: 1:: command not found?
Check your /etc/rc.conf file. Perhaps you have accidentally uncommented some of the descriptive comments before the PROTOCOLS assignment. |
Vielleicht findest du in der rc.conf ja was. |
|
Back to top |
|
 |
Thorben n00b


Joined: 21 Jun 2002 Posts: 60 Location: Amsterdam
|
Posted: Sat Nov 30, 2002 9:54 am Post subject: |
|
|
meine rc.conf sieht so aus: Code: |
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Daniel Robbins <drobbins@gentoo.org>
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/rc.conf,v 1.11 2002/08/06 20:12:28 danarmak Exp $
# /etc/rc.conf: Global startup script configuration settings
# Use KEYMAP to specify the default console keymap. There is a complete tree
# of keymaps in /usr/share/keymaps to choose from. This setting is used by the
# /etc/init.d/keymaps script.
KEYMAP="de"
# CONSOLEFONT specifies the default font that you'd like Linux to use on the
# console. You can find a good selection of fonts in /usr/share/consolefonts;
# you shouldn't specify the trailing ".psf.gz", just the font name below.
# To use the default console font, comment out the CONSOLEFONT setting below.
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
# not want to use it, run "rc-update del consolefont" as root).
CONSOLEFONT="default8x16"
# CONSOLETRANSALTION is the charset map file to use. Leave commented to use
# the default one. Have a look in /usr/share/consoletrans for a selection of
# map files you can use.
#CONSOLETRANSLATION="8859-1_to_uni"
# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time). If your clock is set to the local time, then set CLOCK
# to "local". This setting is used by the /etc/init.d/clock script.
CLOCK="UTC"
# Set protocols to the protocols that you plan to use. Gentoo Linux will only
# enable module auto-loading for these protocols, eliminating annoying module
# not found errors.
# Num Protocol
1: Unix
2: IPv4
# 3: Amateur Radio AX.25
# 4: IPX
# 5: DDP / appletalk
# 6: Amateur Radio NET/ROM
# 9: X.25
10: IPv6
# 11: ROSE / Amateur Radio X.25 PLP
# 19: Acorn Econet
# Most users want this:
PROTOCOLS="1 2"
#For IPv6 support:
#PROTOCOLS="1 2 10"
# What display manager do you use ? [ xdm | gdm | kdm ]
DISPLAYMANAGER=kdm
# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit. The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to. The support scripts is smart enouth to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enligtenment" can also work. This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE: this behaviour is overridden when a ~/.xinitrc or ~/.xsession exists
# for the particular program run ( ~/.xinitrc for startx, ... ).
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps
XSESSION=Gnome
|
und wenn ich auf den link klicke bekomm ich ne deutsche faq zur benutzung des forums. immer noch.
mfg Thorben |
|
Back to top |
|
 |
format c: Tux's lil' helper

Joined: 07 Aug 2002 Posts: 89 Location: Berlin
|
Posted: Sat Nov 30, 2002 12:58 pm Post subject: |
|
|
Komisch, wenn ich dem Link folge lande ich bei genau der Stelle, die ich dann auch zitiert habe. Aber egal.
Meine rc.conf sieht an ein paar Stellen anders aus.
Quote: |
# Set protocols to the protocols that you plan to use. Gentoo Linux will only
# enable module auto-loading for these protocols, eliminating annoying module
# not found errors.
# Num Protocol
#1: Unix
#2: IPv4
# 3: Amateur Radio AX.25
# 4: IPX
# 5: DDP / appletalk
# 6: Amateur Radio NET/ROM
# 9: X.25
#10: IPv6
# 11: ROSE / Amateur Radio X.25 PLP
# 19: Acorn Econet
# Most users want this:
#PROTOCOLS="1 2"
#For IPv6 support:
PROTOCOLS="1 2 10"
|
Ich meine, dass das oben nur eine Aufzaehlung ist und die gewünschten Protokolle unten freigegeben werden. Was ich anders machen würde ist mit grün gesetzt bzw. an einer Stelle ist die Raute entfernt. Vielleicht bringt es ja was.
mfg |
|
Back to top |
|
 |
Beforegod Bodhisattva

Joined: 10 Apr 2002 Posts: 1495 Location: Würzburg
|
Posted: Sat Nov 30, 2002 1:31 pm Post subject: |
|
|
Was @rac Dir damit sagen wollte ist folgendes :
Du hast in der Protokoll Konfiguration folgenden Fehler gemacht :
Quote: |
# Num Protocol
1: Unix
2: IPv4
# 3: Amateur Radio AX.25
# 4: IPX
# 5: DDP / appletalk
# 6: Amateur Radio NET/ROM
# 9: X.25
10: IPv6
# 11: ROSE / Amateur Radio X.25 PLP
# 19: Acorn Econet
# Most users want this:
PROTOCOLS="1 2"
|
Und zwar die Protokolle direkt auskommentiert. Das ist falsch!
Wie @format C. es schon richtig gesagt hat, musst Du die Protokollbeschreibung kommentiert lassen und nur die gewünschten Protokolle unter
eintragen! |
|
Back to top |
|
 |
Thorben n00b


Joined: 21 Jun 2002 Posts: 60 Location: Amsterdam
|
Posted: Sat Nov 30, 2002 1:45 pm Post subject: danke, den fehler hab ich jetzt. |
|
|
Stimmt, danke ihr beiden, habs behoben. Kommen jetzt keine fehler mehr vom runscript. aber dafür hab ich mit der eth0 probleme. aber das gehört in nen anderen beitrag, den ich gleich aufmachen werde.
bis denn
Thorben |
|
Back to top |
|
 |
|