dyndns etc

Want new functionality in Bubba? Discuss it here.
carl
Posts: 474
Joined: 07 May 2008, 04:41

Post by carl » 13 Sep 2008, 18:43

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
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com

carl
Posts: 474
Joined: 07 May 2008, 04:41

Post by carl » 13 Sep 2008, 18:47

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
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com

RealElwood
Posts: 42
Joined: 18 Feb 2008, 05:17

Post by RealElwood » 14 Sep 2008, 12:24

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???

carl
Posts: 474
Joined: 07 May 2008, 04:41

Post by carl » 14 Sep 2008, 17:07

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
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com

fresca1919
Posts: 4
Joined: 20 Oct 2008, 16:57

TZO Dynamic

Post by fresca1919 » 30 Oct 2008, 16:55

There is a Perl script that I have been using. It is on there web site under downloads

ahoff
Posts: 84
Joined: 01 Apr 2008, 20:50
Location: Swe

Post by ahoff » 21 Jan 2009, 15:50

Te easy way.

Code: Select all

apt-get install rcconf
then

Code: Select all

bubba2:~# rcconf
and choose what to start at boottime.

Locked