LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-14-2003, 04:34 PM   #1
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
service network restart


thats the command i have to run everytime i need to get to the internet (that is after i reboot). for some reason, my Mandrake 9.1 does not do what my former Mandrake 9.0 use to do and that's automatically connect to the Internet for me. Ever since I got 9.1 on there my eth0 would always come up [Failed] during boot up. However someone did point out that if i changed my hotplug under mandrake control center to off then i would no longer have that [Failed] message.

ok, that worked! I no longer get the [Failed] message on my eth0, however I still have to manually enter the command to initially connect to the internet.

so i thought what if i put that somewhere during boot up, say my /ect/rc.d/rc.modules file:


#!/bin/sh
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>
# $Id: rc.modules,v 1.1.1.1 2000/07/30 05:07:38 chmouel Exp $
# description: launch modules specified in /etc/modules inspired by a
# Debian idea.

[ -f /etc/modules ] || exit 0

# Loop over every line in /etc/modules.
(cat /etc/modules; echo) | while read module args
do
case "$module" in
\#*|"") continue ;;
esac
initlog -s "Loading module: $module"
modprobe $module $args >/dev/null 2>&1
done

service network restart



but that doesn't seem to work either....

ok ok, enough going around the problem, does anyone know what i'm going thru....

I'm running Mandrake 9.1 on a Dell Inspiron 7500 using a Xircom CE (PCMIA) card to get at the LinkSys router (network, internet) and it used to work fine under Mandrake 9.0.

Thanks a bunch

- perry
 
Old 12-14-2003, 09:02 PM   #2
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
Try seting it up as a cron job that runs at start up
 
Old 12-15-2003, 07:00 AM   #3
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Joey.Dale
Try seting it up as a cron job that runs at start up
nice idea, only i had that disabled on account that there is a cron job there that goes about my /home/downloads directory shutting off access to it.... and i'm wondering if cron my be a bad idea to have running in general...

however, it's a nice idea

- perry
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
counter part of "service network restart" b0nd Slackware 5 10-10-2005 06:47 AM
Service to auto restart jamiehenderson Linux - Software 3 08-08-2005 01:44 PM
Automatically Restart Service tulip4heaven Linux - General 1 04-23-2005 02:11 AM
auto restart service st3reo Linux - Newbie 4 12-07-2004 12:46 PM
service network restart - mandrake 9.1 problem perry Linux - General 0 01-25-2004 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration