Page 2 of 2
Posted: 13 Sep 2008, 18:43
by carl
RealElwood wrote:carl wrote:
You can put code into /etc/rc.local that will be executed on bootup.
/Carl
That file was empty is it supposed to be that?
Yea, it is a place for local sysadmin to dump stuff to be booted at startup; the other alternative is to create an init script in /etc/init.d and create appropriate symlinks to /etc/rcX.d (often by using update-rc.d)
/Carl
Posted: 13 Sep 2008, 18:47
by carl
carl wrote:RealElwood wrote:carl wrote:
You can put code into /etc/rc.local that will be executed on bootup.
/Carl
That file was empty is it supposed to be that?
Yea, it is a place for local sysadmin to dump stuff to be booted at startup; the other alternative is to create an init script in /etc/init.d and create appropriate symlinks to /etc/rcX.d (often by using update-rc.d)
/Carl
Eh, my bad, forgot that that file isn't connected in sarge; you would have to add following to the appropriate place in /etc/inittab:
rclocalS:2345:wait:/etc/rc.local start
rclocalK:06:wait:/etc/rc.local stop
Posted: 14 Sep 2008, 12:24
by RealElwood
carl wrote:carl wrote:RealElwood wrote:
That file was empty is it supposed to be that?
Yea, it is a place for local sysadmin to dump stuff to be booted at startup; the other alternative is to create an init script in /etc/init.d and create appropriate symlinks to /etc/rcX.d (often by using update-rc.d)
/Carl
Eh, my bad, forgot that that file isn't connected in sarge; you would have to add following to the appropriate place in /etc/inittab:
rclocalS:2345:wait:/etc/rc.local start
rclocalK:06:wait:/etc/rc.local stop
Whooo Jolly Jumper as Lucky Luke would've sad when things ot out of hand.
Do i understand you correctly that whatever i put in rc.local isn't enough? It needs more tweeking?
Or is it the other file, init.d???
Posted: 14 Sep 2008, 17:07
by carl
RealElwood wrote:carl wrote:carl wrote:
Yea, it is a place for local sysadmin to dump stuff to be booted at startup; the other alternative is to create an init script in /etc/init.d and create appropriate symlinks to /etc/rcX.d (often by using update-rc.d)
/Carl
Eh, my bad, forgot that that file isn't connected in sarge; you would have to add following to the appropriate place in /etc/inittab:
rclocalS:2345:wait:/etc/rc.local start
rclocalK:06:wait:/etc/rc.local stop
Whooo Jolly Jumper as Lucky Luke would've sad when things ot out of hand.
Do i understand you correctly that whatever i put in rc.local isn't enough? It needs more tweeking?
Or is it the other file, init.d???
/etc/init.d is an directory containing all scripts that is ran during startup, though the directories defining what, and in what order should be booted is in /etc/rcN.d where N is 0 ot 6 or S; also in etch and above, /etc/rc.local is also executed.
To add an new init to do the above, do the following:
1. add following to /etc/init.d/disable-offload
Code: Select all
#!/bin/sh
set -e
. /lib/lsb/init-functions
case "$1" in
start)
log_begin_msg "Disable offload on wan interface"
/usr/sbin/ethtool -K eth0 rx off tx off
log_end_msg 0
exit 0
;;
stop|restart|force-reload)
exit 0
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
exit 3
;;
esac
2. execute: update-rc.d disable-offload defaults
/Carl
TZO Dynamic
Posted: 30 Oct 2008, 16:55
by fresca1919
There is a Perl script that I have been using. It is on there web site under downloads
Posted: 21 Jan 2009, 15:50
by ahoff
Te easy way.
then
and choose what to start at boottime.