Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/sbin/runscript.sh: 1:: command not found
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Thorben
n00b
n00b


Joined: 21 Jun 2002
Posts: 60
Location: Amsterdam

PostPosted: Fri Nov 29, 2002 2:31 pm    Post subject: /sbin/runscript.sh: 1:: command not found Reply with quote

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
View user's profile Send private message
hopfe
Guru
Guru


Joined: 22 Oct 2002
Posts: 456
Location: Frankfurt Main oder Aachen

PostPosted: Fri Nov 29, 2002 3:39 pm    Post subject: Inhalt Reply with quote

Poste mal den Inhalt von runscript.sh, vielleicht findet sich da ein Fehler.
Back to top
View user's profile Send private message
Thorben
n00b
n00b


Joined: 21 Jun 2002
Posts: 60
Location: Amsterdam

PostPosted: Fri Nov 29, 2002 5:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Nov 29, 2002 9:04 pm    Post subject: Reply with quote

https://forums.gentoo.org/faq.php#17
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Thorben
n00b
n00b


Joined: 21 Jun 2002
Posts: 60
Location: Amsterdam

PostPosted: Fri Nov 29, 2002 9:14 pm    Post subject: Reply with quote

Sorry, das sagt mir aber rein gar nichts. Was soll ich mit der FAQ zu Benutzerangaben und Einstellungen???

MfG Thorben
Back to top
View user's profile Send private message
format c:
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2002
Posts: 89
Location: Berlin

PostPosted: Fri Nov 29, 2002 10:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Thorben
n00b
n00b


Joined: 21 Jun 2002
Posts: 60
Location: Amsterdam

PostPosted: Sat Nov 30, 2002 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
format c:
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2002
Posts: 89
Location: Berlin

PostPosted: Sat Nov 30, 2002 12:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1494
Location: Frankfurt/Main

PostPosted: Sat Nov 30, 2002 1:31 pm    Post subject: Reply with quote

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
Code:

PROTOCOLS="1 2 10"

eintragen!
Back to top
View user's profile Send private message
Thorben
n00b
n00b


Joined: 21 Jun 2002
Posts: 60
Location: Amsterdam

PostPosted: Sat Nov 30, 2002 1:45 pm    Post subject: danke, den fehler hab ich jetzt. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum