LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-11-2006, 10:47 AM   #1
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
Bootscripts checkroot.sh, bootmisc.sh


Hi I was trying to optimize the bootscripts a bit but now I accidentally ended up with an empty checkroot.sh and bootmisc.sh . How can I get those back?
I'm using debian testing.
 
Old 01-11-2006, 11:03 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,585
Blog Entries: 15

Rep: Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537
You'd restore them from your backups or better yet just copy back in the copy of the original you made right before doing the changes.

Sorry - just a good lesson - anytime I'm editing a key file I always do something like:

cp -p filename filename.CCYYMMDD

where CCYYMMDD are century,year,month,day (e.g. 20060111).

Not only does it give me a fall back with the same ownerships and permissions as the original it also lets me know when looking later when the file was changed (from the suffix) and when the prior change to that was (from the true date stamp in ls).

Presumably you don't have backups or copies. If you post which distro and version someone (even me) may be able to post copies for you to use if we have the same.
 
Old 01-11-2006, 11:09 AM   #3
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jlightner
You'd restore them from your backups or better yet just copy back in the copy of the original you made right before doing the changes.

Sorry - just a good lesson - anytime I'm editing a key file I always do something like:

cp -p filename filename.CCYYMMDD

where CCYYMMDD are century,year,month,day (e.g. 20060111).

Not only does it give me a fall back with the same ownerships and permissions as the original it also lets me know when looking later when the file was changed (from the suffix) and when the prior change to that was (from the true date stamp in ls).

Presumably you don't have backups or copies. If you post which distro and version someone (even me) may be able to post copies for you to use if we have the same.
Yea lesson learned, but I'm probably not going to make a backup next time either .

As I said previously, I'm using debian testing. Otherwhise called etch. It's up to date.
 
Old 01-11-2006, 12:28 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,613

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by gunnix
Hi I was trying to optimize the bootscripts a bit but now I accidentally ended up with an empty checkroot.sh and bootmisc.sh . How can I get those back?
I'm using debian testing.
apt-get install --reinstall initscripts
 
Old 01-11-2006, 01:28 PM   #5
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by HappyTux
apt-get install --reinstall initscripts
Already tried that and it doesn't give me new scripts :s
 
Old 01-11-2006, 01:39 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,613

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by gunnix
Already tried that and it doesn't give me new scripts :s
Well then download the initscripts package to say /tmp or if already in your cache copy to then dpkg -x initscripts-???.deb and copy the files over.
 
Old 01-11-2006, 03:00 PM   #7
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Original Poster
Rep: Reputation: 30
heh ye, thx for the suggestion, I already did that and it's working again

I'm wasting time on trying to save just a little bit of boot time
 
  


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
hotplug-ng-002 + LFS bootscripts 3.2.2 = a complete mess :( ParticleHunter Linux From Scratch 1 07-21-2005 10:27 PM
bootmisc.sh in init.d not noticed by fedora? eth0g Linux - Hardware 0 05-28-2005 01:15 AM
how does one go about writing and implementing sysvinit bootscripts? behmjoe Linux - Software 2 05-02-2005 05:30 PM
bootmisc failed nyk Linux - Software 0 11-03-2004 04:27 AM
Bootscripts - pause at init 3? Andrew Benton Linux From Scratch 6 01-28-2004 09:00 PM

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

All times are GMT -5. The time now is 07:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration