The time now is Fri 24 May 2013, 11:13
All times are UTC - 4 |
| Author |
Message |
ozboomer

Joined: 04 May 2005 Posts: 83 Location: Melbourne, Australia
|
Posted: Sat 23 Jul 2005, 10:02 Post subject:
1.0.4 startup/shutdown scripts: rc.reboot updates |
|
It's been a while since I've played with the startup/shutdown scripts... but with 1.0.4 it seems updates to /etc/rc.d/rc.reboot are not maintained across reboots.
sysinit seems to always copy rc.reboot from /root0/... into /tmp, rather than copying /etc/rc.d/rc.reboot (irrespective of whether it's rc.reboot, rc.reboot-cd or rc.reboot-hd). Is this the correct behaviour?
In the current scheme of things, where I'm always booting from the Live-CD and saving things in a pup001 file on my PC HDD, I think I'll have to remaster the Live-CD with my own rc.reboot/rc.reboot-cd/rc.reboot-hd, so my changes are maintained.
Is this what I'm going to have to do... or have I got it all wrong again!?
Thanks.
John
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6866 Location: Perth, Western Australia
|
Posted: Sat 23 Jul 2005, 12:00 Post subject:
|
|
If I recall rightly, the rc.reboot out of image.gz is used, copied to /tmp.
So yes, you will have to edit image.gz itself.
|
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Sat 23 Jul 2005, 17:45 Post subject:
|
|
or you can copy rc.reboot to rc.reboot-my ... make any changes to rc.reboot-my, and have a line in maybe rc.local, to copy rc.reboot-my to /tmp/rc.reboot
|
|
Back to top
|
|
 |
ozboomer

Joined: 04 May 2005 Posts: 83 Location: Melbourne, Australia
|
Posted: Sat 23 Jul 2005, 21:49 Post subject:
|
|
| GuestToo wrote: | | or you can copy rc.reboot to rc.reboot-my ... make any changes to rc.reboot-my, and have a line in maybe rc.local, to copy rc.reboot-my to /tmp/rc.reboot |
Ok, this seems to be the sort of way to go, I think.
I'm having another cut at setting-up some sort of 'site-specific' customizations for startup/shutdown and I'm leaning toward maintaining my own files/directories... and then I'll have something that modifies rc.local to run all the site-specific things... but I still have to be careful with that as the firewall setups (and who knows what else) can still come through and modify rc.local).
Many thanks for the info.
|
|
Back to top
|
|
 |
|
|
|
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 You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|