LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-13-2004, 06:58 PM   #1
Hooper
Member
 
Registered: Dec 2003
Location: FL
Distribution: Slack91-FBSD49
Posts: 80

Rep: Reputation: 15
Lost a startup script... how to retrieve it?


Hello,

I accidently renamed rc.inet1 to rc.inet1.conf and need to access the original rc.inet1 (not conf) from the cd. Can anyone tell me how to retrieve this?

This was a swaret booboo when trying to rename a .new file. Renamed the wrong darn one. Deleted the wrong one. Anyhow, I have a conf but I lost the inet1 script.

Please hurry if you will I'm out of Linux and logged into windows and I feel dirty.

Thank you,
Hooper

Last edited by Hooper; 06-13-2004 at 07:16 PM.
 
Old 06-13-2004, 07:18 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Why can't you just copy "rc.inet1.conf" back to "rc.inet1"?
 
Old 06-13-2004, 07:20 PM   #3
Hooper
Member
 
Registered: Dec 2003
Location: FL
Distribution: Slack91-FBSD49
Posts: 80

Original Poster
Rep: Reputation: 15
It was removed. I was tired. It was 3 am. Renaming wouldn't give me the script back. I know I won't be swareting from 9.1 to current again when I'm that tired. No doubt about it. That's one thing about slackware, if your going to swaret....you're going to be working on some files. There were quite a few .new files this time. Current is coming along nicely.

Anyone? access /etc/rc.d/scripts from the iso's? If not possible, would someone post or email me the rc.inet1 script?

Donka

Last edited by Hooper; 06-13-2004 at 07:26 PM.
 
Old 06-13-2004, 07:26 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Well, I would imagine rc.inet1 is somewhere inside of the "etc-X.X-noarch" package.

You could just install the "etc-5.1-noarch-8" package from Slackware-Current, or else try to pull just rc.inet1 from the package on the CD.
 
Old 06-13-2004, 07:30 PM   #5
Hooper
Member
 
Registered: Dec 2003
Location: FL
Distribution: Slack91-FBSD49
Posts: 80

Original Poster
Rep: Reputation: 15
That helps... I'll try that. I didn't know which package held the scripts. Donka... let me try that.
 
Old 06-13-2004, 07:50 PM   #6
Hooper
Member
 
Registered: Dec 2003
Location: FL
Distribution: Slack91-FBSD49
Posts: 80

Original Poster
Rep: Reputation: 15
Hmm. Didn't work. The startup scripts aren't in the etc-5.1-noarch-8 file. All that is there is just the /etc/. No /etc/rc.d/, /etc/rc.d/initd.

Any other ideas? The thought of reinstalling over a lost script doesn't sound to inviting.

Last edited by Hooper; 06-13-2004 at 07:54 PM.
 
Old 06-13-2004, 08:05 PM   #7
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Have a look through MANIFEST.bz2 on the slack install cd. That file lists every file in every package, so you can find what you're looking for

--Shade

PS- you'll need to decompress it, of course -- bunzip2 manifest.bz2
 
Old 06-13-2004, 08:07 PM   #8
Hooper
Member
 
Registered: Dec 2003
Location: FL
Distribution: Slack91-FBSD49
Posts: 80

Original Poster
Rep: Reputation: 15
Actually that was the first thing I did before I posted. I couldn't find the startup scripts. Either I'm blind or they are in a package that doesn't list them?
 
Old 06-13-2004, 08:23 PM   #9
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
Try looking in the tcpip-blah.tgz package.......
 
Old 06-13-2004, 09:00 PM   #10
Hooper
Member
 
Registered: Dec 2003
Location: FL
Distribution: Slack91-FBSD49
Posts: 80

Original Poster
Rep: Reputation: 15
Ok... Heading that way. Thank you.
 
Old 06-13-2004, 09:13 PM   #11
Toth
Member
 
Registered: Aug 2003
Posts: 83

Rep: Reputation: 15
For future reference, since the package was installed, to find out which package has a particular file:

Code:
$ cd /var/log/packages
$ grep etc/rc.d/rc.inet1 *
tcpip-0.17-i486-27:etc/rc.d/rc.inet1.conf.new
tcpip-0.17-i486-27:etc/rc.d/rc.inet1.new
Also, to extract a single file from a package (assuming the package is under /some/dir):

Code:
# cd /
# tar xfzp /some/dir/tcpip-0.17-i486-27.tgz etc/rc.d/rc.inet1.new
 
Old 06-13-2004, 09:33 PM   #12
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
Quote:
Originally posted by Toth
For future reference, since the package was installed, to find out which package has a particular file:...
Another way is using the script from this thread.....................Use the one called 'whichpkg'..............it's what I used to find the pkg........
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
Lost /boot contents. Oops! khader69 Linux - Newbie 2 04-26-2005 05:06 AM
OOps, lost winmanager installing nvidia drivers BajaNick Linux - Software 2 06-17-2004 03:57 AM
Oops - I lost my system tray !! smevans Red Hat 5 11-05-2003 07:06 AM
Lost my instructions for wireless connect...oops! jpohara Linux - Newbie 4 04-24-2002 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration